Custom post type capabilities
-
Hi,
So i have created a new custom type.
I want a specific user to only have access to that custom post type section.
However i have noticed that
‘publish_posts’ => ‘my_custom_naming’
and
$user->add_cap( ‘my_custom_naming’ );
does not work.
The user cannot publish posts with the above code. Only when I add ‘publish_posts’ => ‘publish_posts’ the user can publish posts but then the POSTS section appears on the left hand menu in admin area.
Any ideas..?
ps: DONT suggest that I install any plugin. I am aware that there are plugins that do this.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom post type capabilities’ is closed to new replies.