WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] ADD_ROLE function: bug ??? (1 post)

  1. Elan42.com
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags