diff --git a/hong-kong-fps-woo-payment.php b/hong-kong-fps-woo-payment.php index 81fe640..01e7dcf 100644 --- a/hong-kong-fps-woo-payment.php +++ b/hong-kong-fps-woo-payment.php @@ -53,6 +53,18 @@ function its_wpf_add_class( $methods ){ } +/** + * Reqister query var for qrcode image generation + */ + +add_filter( 'query_vars', 'its_wpf_qrcode_add_var' ); +function its_wpf_qrcode_add_var( $vars ) +{ + $vars[] = 'generate_fps_qrcode'; + $vars[] = '_wpnonce'; + return $vars; +} + /** * Print out qr code when the right query var is found */