Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/78a8ae8d28f3ff83f55550f711cf88a2 to your computer and use it in GitHub Desktop.
Save woogists/78a8ae8d28f3ff83f55550f711cf88a2 to your computer and use it in GitHub Desktop.
[WooCommerce Order Barcodes] Security Check Failed
/*
* 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