WordPress.org

Ready to get started?Download WordPress

Forums

problem with $wp_roles->add_cap (1 post)

  1. elCHAVALdelaWEB
    Member
    Posted 6 years ago #

    I'm writing a little plugin that create new type of users "moderator" that have to have permissions to create and edit posts and JUST EDIT PAGES without possibility of CREATE PAGES.
    If I unterstood everything right, something like this
    $wp_roles->add_cap('moderator','edit_published_pages',true);
    have to permit edit pages without permitting create pages. But it doesn't work and menu item "Edit"=>"Pages" not appear.
    What should I do?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by elCHAVALdelaWEB
  • This topic is not resolved
  • WordPress version: 2.5.1