Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 73026

Custom post type capabilities

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 73026

Trending Articles