Last active
January 4, 2016 04:24
-
-
Save hlashbrooke/f960627d03da07ac3cd2 to your computer and use it in GitHub Desktop.
WooCommerce Order Barcodes: Modify scan permissions
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_scan_permission', 'modify_woocommerce_order_barcodes_scan_permission' ); | |
function modify_woocommerce_order_barcodes_scan_permission( $has_permission ) { | |
// Do any required permission checks here | |
$has_permission = true; | |
return $has_permission; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment