• Resolved DavideBo

    (@davidebo)


    My users should be able to create new posts but they aren’t allowed to modify them afterwards. So I’ve turned on the create_posts capability and left edit_posts turned off. With this configuration, they don’t even see the posts menu item, so adding a new post is impossible. Any suggestions or workaorunds are welcome.

    Thanks
    Davide Borgioli, University of Pisa

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    WordPress add a new post this way:
    It create a new post record at the database, then reopen that existing posts (not new already) for editing. While WP checks ‘create_posts’ capability to decide to show to a user the ‘Posts->Add New’ menu item and ‘Add New’ button at the posts list, it check ‘edit_posts’ and even ‘edit_published’ posts capability before show to a user post editor page. And Yes, ‘Posts’ menu item is protected by ‘edit_posts’ capability. So it’s not possible to realize your idea just using WP user capabilities ‘create_posts’, ‘edit_posts’.

    If you don’t wish to allow to users to edit a posts, which they created, look at the ‘Contributor’ role. User create new post and send it for review to the editor. When editor will publish such post, contributor can not edit it, as he does not have ‘edit_published_posts’ capability.

    Thread Starter DavideBo

    (@davidebo)

    Hello Vladimir,
    I’ll play with edit_published_posts capability.

    Many thanks.
    Davide

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘create_posts works only in conjunction with edit_posts’ is closed to new replies.