Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active July 9, 2018 19:24
Show Gist options
  • Save woogists/83897ef9c42adc0d217095328483fe9f to your computer and use it in GitHub Desktop.
Save woogists/83897ef9c42adc0d217095328483fe9f to your computer and use it in GitHub Desktop.
[Box Office] Allows you to change the scan permissions of WooCommerce Box Office
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