This commit is contained in:
Frey Mansikkaniemi 2020-09-06 21:00:45 +08:00
parent 2c589eda57
commit 544529348a

View File

@ -59,6 +59,8 @@ function its_wpf_add_class( $methods ){
add_action( 'init', 'its_wpf_qrcode_catch', 0 ); add_action( 'init', 'its_wpf_qrcode_catch', 0 );
function its_wpf_qrcode_catch() function its_wpf_qrcode_catch()
{
if(isset($_REQUEST['generate_fps_qrcode']) && isset($_REQUEST['_wpnonce']))
{ {
$qrcode_string = $_REQUEST['generate_fps_qrcode']; $qrcode_string = $_REQUEST['generate_fps_qrcode'];
$nonce = $_REQUEST['_wpnonce']; $nonce = $_REQUEST['_wpnonce'];
@ -71,6 +73,7 @@ function its_wpf_qrcode_catch()
exit(); exit();
} }
} }
}
/** /**
* Change text on the Pay order button. * Change text on the Pay order button.