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.