Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Restrict Orders View – 2 › Reply To: Restrict Orders View – 2
17/04/2016 at 04:57
#2247
Vladimir
Keymaster
If you have a test environment try development version (current is 4.25.b5). It’s available after login from the same download page.
I added a filter, which allows to switch off order, which added by default according to the product owner ID. So add it to the theme’s functions.php or set up this code as the ‘must-use’ plugin.
add_filter('ure_edit_posts_access_add_orders_by_product_owner','ure_add_orders_by_product_owner',10,1);
function ure_add_orders_by_product_owner($value) {
return false;
}