Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Last active October 31, 2017 10:46
Show Gist options
  • Save danjjohnson/69b819b452b309d58b65b74354f4bbe4 to your computer and use it in GitHub Desktop.
Save danjjohnson/69b819b452b309d58b65b74354f4bbe4 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_box_office_scan_permission', 'modify_woocommerce_box_office_scan_permission' );
function modify_woocommerce_box_office_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