Viewing 7 replies - 1 through 7 (of 7 total)
  • I am having the same issue. I need users to be able to access flamingo without giving them full access to everything else.

    @wpjeki/@shanekeller Were you guys able to solve this? I too need to allow my Editors access to Flamingo.

    Hello @wpjeki and @bagustri,

    Yes, I figured it out.

    The “ONLY” way to make flamingo viewable to everyone is to enable the “edit users” in the role settings.

    So what I did is, enabled “edit users” for the lower roles but I disabled “view users” and everything else under user roles so they cannot even see the users menu.

    Make sense?

    That is the only way it works.

    Take care,
    Shane Keller

    Hey @shanekeller.

    Thanks for sharing. May I know where exactly you found the “edit users” option to enable? I don’t see any role settings anywhere, sorry.

    – Bagus

    @bagustri & @wpjeki, you need to install a WordPress Roles Plugin where you can edit the capabilities of the roles.

    That’s it.

    Thread Starter wpjeki

    (@wpjeki)

    Thank you. it works.

    Hi All just want to add another solution which may be a little safer then giving users edit_user capabilities. This is copied from the reply to the other thread.

    Simply add the below function to your function.php
    What it does it is it changes the default user capabilities of the Flamingo Plugin. So now any user role (like editor) that can edit a post or publish a post will be able to see the flamingo menu.

    This solution also works with the Adminimize plugin on WP 4.6.1.

    Hope it helps

     remove_filter( 'map_meta_cap', 'flamingo_map_meta_cap' );
        add_filter( 'map_meta_cap', 'mycustom_flamingo_map_meta_cap', 9, 4 );
        function mycustom_flamingo_map_meta_cap( $caps, $cap, $user_id, $args ) {
            $meta_caps = array(
                'flamingo_edit_contacts' => 'edit_posts',
                'flamingo_edit_contact' => 'edit_posts',
                'flamingo_delete_contact' => 'edit_posts',
                'flamingo_edit_inbound_messages' => 'publish_posts',
                'flamingo_delete_inbound_message' => 'publish_posts',
                'flamingo_delete_inbound_messages' => 'publish_posts',
                'flamingo_spam_inbound_message' => 'publish_posts',
                'flamingo_unspam_inbound_message' => 'publish_posts' );
    
            $caps = array_diff( $caps, array_keys( $meta_caps ) );
    
            if ( isset( $meta_caps[$cap] ) )
                $caps[] = $meta_caps[$cap];
    
            return $caps;
        	}
    • This reply was modified 8 years, 1 month ago by ckitso.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘is the only admin’ is closed to new replies.