Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Note : this example if for store manager, butyou can change 'manage_woocommerce' by any other WooCommerce / Wordpress role. Please refer here: https://codex.wordpress.org/Roles_and_Capabilities
- // PHP >= 5.3
- add_filter( 'wqep_caps', function( $cap ) { return 'manage_woocommerce'; } );
- // PHP < 5.3
- add_filter( 'wqep_caps', 'add_export_to_manager');
- function add_export_to_manager($cap){
- return 'manage_woocommerce';
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement