LImit Access
1 2 3 4 5 |
// only Admins will see >WooCommerce>Export Orders add_filter("woe_current_user_can_export", function($can) { $user = wp_get_current_user(); return in_array( 'administrator', (array) $user->roles ) ; }); |
1 2 3 4 5 |
// only Admins will see >WooCommerce>Export Orders add_filter("woe_current_user_can_export", function($can) { $user = wp_get_current_user(); return in_array( 'administrator', (array) $user->roles ) ; }); |