WordPress.org

Support

Support » Plugins and Hacks » [Resolved] ADD_ROLE function: bug ???

[Resolved] ADD_ROLE function: bug ???

  • Hi !

    I added a new role with the add_role function, I gave him all the Editor powers but in the end, only “posts” and “comments” appear in it’s menu.

    Why isn’t “page” “manage links” and all other stuff isn’t appearing ??

    add_role('cliente', 'Cliente', array(
    
            'manage_options' => true,
            'edit_themes' => true,
            'edit_theme_options' => true,
            'moderate_comments' => true,
            'manage_categories' => true,
            'manage_links' => true,
            'unfiltered_html' => true,
            'edit_others_posts' => true,
            'edit_pages' => true,
            'edit_others_pages' => true,
            'edit_published_pages' => true,
            'publish_pages' => true,
            'delete_pages' => true,
            'delete_others_pages' => true,
            'delete_published_pages' => true,
            'delete_others_posts' => true,
            'delete_private_posts' => true,
            'edit_private_posts' => true,
            'read_private_posts' => true,
            'delete_private_pages' => true,
            'edit_private_pages' => true,
            'read_private_pages' => true,
            'edit_published_posts' => true,
            'upload_files' => true,
            'publish_posts' => true,
            'delete_published_posts' => true,
            'edit_posts' => true,
            'delete_posts' => true,
            'read' => true
    ));

    [ Please do not bump, it’s not permitted here. ]

  • The topic ‘[Resolved] ADD_ROLE function: bug ???’ is closed to new replies.
Skip to toolbar