Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Created July 21, 2014 11:30
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 hlashbrooke/43294058fced2c855d59 to your computer and use it in GitHub Desktop.
Save hlashbrooke/43294058fced2c855d59 to your computer and use it in GitHub Desktop.
WooCommerce Order Barcodes: Disable nonce check
<?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