Woocommerce prevent WP users custom role from viewing CPT on dashboard
-
I created a custom post type using the arguments below, and wanted a WP custom user role ( vendor ) to view/edit it on back-end.
I gave that user role the appropriate capabilities to do so, but it didn’t appear, I tried to investigate this, I figured out that when I grant the user vendor role manage_woocommerce capability, CPT appear on vendor users back-end.
But granting ( vendor ) user role that capability causes another side affects.
Screenshot showing menu items with woocommerce plugin deactivated, and CPT appear
Screenshot showing menu items with woocommerce plugin activated, and CPT isn’t exist.
https://i.stack.imgur.com/ZG696.jpg
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Woocommerce prevent WP users custom role from viewing CPT on dashboard’ is closed to new replies.