Created
March 9, 2018 16:03
-
-
Save woogists/78a8ae8d28f3ff83f55550f711cf88a2 to your computer and use it in GitHub Desktop.
[WooCommerce Order Barcodes] Security Check Failed
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
/* | |
* Snippet to prevent security check failed error. | |
* Code goes in the functions.php file in your theme. | |
*/ | |
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