New Custom Capabilities created by Custom Post Type aren't shown
-
Hi,
I’ve created a custom post type called ‘ypt’ using code I’ve found on stackexchange. This custom post type uses “ypt” as capability_type and defined “map_meta_cap” as true.
Thus, dumping the variables created for the new post type, I get this:
[“cap”]=> object(stdClass)#4206 (15) { [“edit_post”]=> string(8) “edit_ypt” [“read_post”]=> string(8) “read_ypt” [“delete_post”]=> string(10) “delete_ypt” [“edit_posts”]=> string(9) “edit_ypts” [“edit_others_posts”]=> string(16) “edit_others_ypts” [“publish_posts”]=> string(12) “publish_ypts” [“read_private_posts”]=> string(17) “read_private_ypts” [“read”]=> string(4) “read” [“delete_posts”]=> string(11) “delete_ypts” [“delete_private_posts”]=> string(19) “delete_private_ypts” [“delete_published_posts”]=> string(21) “delete_published_ypts” [“delete_others_posts”]=> string(18) “delete_others_ypts” [“edit_private_posts”]=> string(17) “edit_private_ypts” [“edit_published_posts”]=> string(19) “edit_published_ypts” [“create_posts”]=> string(9) “edit_ypts” }
However, these post-type-specific capabilities aren’t listed at all in the user-role-editor.
I assume I’m making a mistake somewhere, or something has changed in WP, because in previous installations I’ve worked with, the user role editor always showed per post-type capabilities as soon as the custom post types were created.
If I’m doing something wrong, I’d appreciate your help. If not, maybe this is a bug?
Thanks!
https://www.ads-software.com/plugins/user-role-editor/
Oh, I forgot – it’s a WPMU installation, but I tried in a standard installation and it didn’t help the problem.
- The topic ‘New Custom Capabilities created by Custom Post Type aren't shown’ is closed to new replies.