File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ function kkd_pff_paystack_form_shortcode($atts) {
675675 <input type="hidden" value=" ' .$ amount .'" id="pf-qamount"/>
676676 <select class="form-control" id="pf-quantity" name="pf-quantity" > ' ;
677677 $ max = $ quantity +1 ;
678- for ($ i =1 ; $ i < $ max ; $ i ++) {
678+ for ($ i =1 ; $ i < $ max ; $ i ++) {
679679 echo ' <option value=" ' .$ i .'"> ' .$ i .'</ption> ' ;
680680 }
681681 echo '</select>
@@ -830,7 +830,7 @@ function kkd_pff_paystack_radio_shortcode($atts) {
830830 $ code .= ' required="required" ' ;
831831 }
832832 }
833-
833+
834834 $ code .= '/>
835835 <i></i>
836836 ' .$ option .'
@@ -942,6 +942,12 @@ function kkd_pff_paystack_submit_action() {
942942 exit (json_encode ($ response ));
943943 }
944944
945+ // Hookable location. Allows other plugins use a fresh submission before it is saved to the database.
946+ // Such a plugin only needs do
947+ // add_action( 'kkd_pff_paystack_before_save', 'function_to_use_posted_values' );
948+ // somewhere in their code;
949+ do_action ( 'kkd_pff_paystack_before_save ' );
950+
945951 global $ wpdb ;
946952 $ code = kkd_pff_paystack_generate_code ();
947953
You can’t perform that action at this time.
0 commit comments