rwpp_register_my_custom_submenu_page | ask for cap instead of role
-
Hi,
thanks for the great plugin.
One thing would be great if you could change.In line 34 in the the file rearrange-woocommerce-products.php you check if the user has role admin or shop manager but it would be much nicer if you would check for the capability e.g.: “manage_woocommerce”.
In my case I have custom user roles which are not admin or shop manager but I still want your menu to be displayed and thats only possible if you ask for caps.
Sorry for my bad english. I’m not a native speaker (maybe in next life). But I hope you get the meaning. If not I’ll be happy to clarify.
Best regards,
Niko
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘rwpp_register_my_custom_submenu_page | ask for cap instead of role’ is closed to new replies.