WordPress.org

Support

Support » Plugins and Hacks » Add capability for a single page

Add capability for a single page

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add capability for a single page’ is closed to new replies.