WordPress.org

Ready to get started?Download WordPress

Forums

Add capability for a single page (2 posts)

  1. gpspake
    Member
    Posted 1 year ago #

    This seems like it should be very easy but I'm having the hardest time.
    I want to grant the capabilities 'edit_pages" and 'edit_published_pages' to the subscriber role but only for one page.

    //If I can use if
    (current_user_can('edit_page',594),
    //Then it would seem logical that I could use $role->add_cap('edit_page',594)

    Unfortunately I'm not having much luck.

  2. lunarmobiscuit
    Member
    Posted 2 months ago #

    Yes, it was difficult to figure out, but there is now a plugin to do this. Per Post Editors. http://wordpress.org/plugins/per-post-editors/

Topic Closed

This topic has been closed to new replies.

About this Topic