Role can't delete post
-
Hi,
I have added a role in my functions php just like this.
$result = add_role( 'traveler', __( 'Traveler' ), array( 'read' => true, 'edit_posts' => true, 'edit_pages' => false, 'edit_others_posts' => false, 'delete_published_posts' => true, 'delete_posts'=> true, 'edit_published_posts'=>true, 'create_posts' => true, 'manage_categories' => true, 'publish_posts' => true, ) );And in a custom post type I display on the frontend a link to delete the post with the
function get_delete_post_link( ).This works link works fine for me as an administrator, or for an user with author role, but not for users with traveler role. So I guess there is a capabilitie missing there, but travelers aleready have the same capabilities than a author… What is wrong?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Role can't delete post’ is closed to new replies.