WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Access Manager
[resolved] Lost acces to manager. (8 posts)

  1. Eberton Moraes
    Member
    Posted 8 months ago #

    Hello :)
    I have lost the main user of WP, now i cant acces the manager from others users, can help-me?

    I have try to add manually a users roles in my functions.php nut the menu of Advanced acces manager dont show.

    $result = add_role(
        'super_admin',
        __( 'Basic Contributor' ),
        array(
    'manage_sites'         => true,
    'manage_network_users'         => true,
    'manage_network_themes'         => true,
    'manage_network_options'         => true,
    'unfiltered_html'         => true,
    'activate_plugins'         => true,
    'create_users'         => true,
    'delete_plugins'         => true,
    'delete_themes'         => true,
    'delete_users'         => true,
    'edit_files'         => true,
    'edit_plugins'         => true,
    'edit_theme_options'         => true,
    'edit_themes'         => true,
    'edit_users'         => true,
    'export'         => true,
    'import'         => true,
    'install_plugins'         => true,
    'install_themes'         => true,
    'list_users'         => true,
    'manage_options'         => true,
    'promote_users'         => true,
    'remove_users'         => true,
    'switch_themes'         => true,
    'update_core'         => true,
    'update_plugins'         => true,
    'update_themes'         => true,
    'edit_dashboard'         => true,
    'moderate_comments'         => true,
    'manage_categories'         => true,
    'manage_links'         => 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,
    'create_product'         => true,
    'publish_posts'         => true,
    'delete_published_posts'         => true,
    'edit_posts'         => true,
    'level_10'         => true,
    'level_9'         => true,
    'level_8'         => true,
    'level_7'         => true,
    'level_6'         => true,
    'level_5'         => true,
    'level_4'         => true,
    'level_3'         => true,
    'level_2'         => true,
    'level_1'         => true,
    'read'         => true
        )
    );

    http://wordpress.org/plugins/advanced-access-manager/

  2. WP AAM
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Eberton Moraes,
    Try to add one more capability: 'AAM Manage'.

    Regards,
    Vasyl

  3. Eberton Moraes
    Member
    Posted 8 months ago #

    Hello,
    I have try add "'aam_manager'=> true" and "'AAM Manage'=> true"

    But no sucess. :/ Any idea?

  4. WP AAM
    Member
    Plugin Author

    Posted 8 months ago #

    Well, you just missed. Should be aam_manage

  5. Eberton Moraes
    Member
    Posted 8 months ago #

    Dont worked :(

    $result = add_role(
        'basic_contributor',
        __( 'Basic Contributor' ),
        array(
    	'manage_sites'         => true,
    	'manage_network_users'         => true,
    	'manage_network_themes'         => true,
    	'manage_network_options'         => true,
    	'unfiltered_html'         => true,
    	'activate_plugins'         => true,
    	'create_users'         => true,
    	'delete_plugins'         => true,
    	'delete_themes'         => true,
    	'delete_users'         => true,
    	'edit_files'         => true,
    	'edit_plugins'         => true,
    	'edit_theme_options'         => true,
    	'edit_themes'         => true,
    	'edit_users'         => true,
    	'export'         => true,
    	'import'         => true,
    	'install_plugins'         => true,
    	'install_themes'         => true,
    	'list_users'         => true,
    	'manage_options'         => true,
    	'promote_users'         => true,
    	'remove_users'         => true,
    	'switch_themes'         => true,
    	'update_core'         => true,
    	'update_plugins'         => true,
    	'update_themes'         => true,
    	'edit_dashboard'         => true,
    	'moderate_comments'         => true,
    	'manage_categories'         => true,
    	'manage_links'         => 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,
    	'create_product'         => true,
    	'publish_posts'         => true,
    	'delete_published_posts'         => true,
    	'edit_posts'         => true,
    	'level_10'         => true,
    	'level_9'         => true,
    	'level_8'         => true,
    	'level_7'         => true,
    	'level_6'         => true,
    	'level_5'         => true,
    	'level_4'         => true,
    	'level_3'         => true,
    	'level_2'         => true,
    	'level_1'         => true,
    	'read'         => true,
    	'aam_manage'         => true
        )
    );
    if ( null !== $result ) {
        echo 'Yay! New role created!';
    }
    else {
        echo 'Oh... the basic_contributor role already exists.';
    }

    Have show the sucess message 'Yay! New role created!', but i cant change the roles of users.

    Can help-me please?

  6. WP AAM
    Member
    Plugin Author

    Posted 5 months ago #

    Hi Eberton,
    Did you try the latest AAM version? There is no longer extra capabilities for AAM.

    Regards,
    Vasyl

  7. edercapoia
    Member
    Posted 4 months ago #

    hello, I am editing a website in wordpress and lost access to Administrator. :/

  8. WP AAM
    Member
    Plugin Author

    Posted 4 months ago #

    Hi edercapoia,
    Check this topic: http://wpaam.com/forum/viewtopic.php?f=7&t=3

    Regards,
    Vasyl

Reply

You must log in to post.

About this Plugin

About this Topic