Created
July 21, 2014 11:30
-
-
Save hlashbrooke/43294058fced2c855d59 to your computer and use it in GitHub Desktop.
WooCommerce Order Barcodes: Disable nonce check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_order_barcodes_do_nonce_check', 'disable_woocommerce_order_barcodes_nonce_check' ); | |
function disable_woocommerce_order_barcodes_nonce_check( $do_check ) { | |
// Do any required pressing here | |
$do_check = false; | |
return $do_check; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment