woogists
3/9/2018 - 4:03 PM

[WooCommerce Order Barcodes] Security Check Failed

[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;
}