using add_role function to make some users to create a selected type post

how are you ?

I have in my site (post_type called = books)..

Read More

I need to make some users for example (Library) to create a books (post_type = books) ..

this is the code to add rols (called = library) ..

$library = add_role('library', 'library', array(
    'read' => true, 
    'edit_posts' => true,
    'delete_posts' => false, 
));

The library Role can create (any type of post) , I want it to create books (post_type) ..

I wish you understand me ..

thank you very much ^_^

Related posts

Leave a Reply

1 comment