Using the flamingo_map_meta_cap filter
-
I am attempting to allow editors to see the Flamingo posts. I have tried putting the following into a plugin:
$fl_meta_caps = array( 'flamingo_edit_contacts' => 'delete_page', 'flamingo_edit_contact' => 'delete_page', 'flamingo_delete_contact' => 'delete_page', 'flamingo_edit_inbound_messages' => 'delete_page', 'flamingo_delete_inbound_message' => 'delete_page', 'flamingo_delete_inbound_messages' => 'delete_page', 'flamingo_spam_inbound_message' => 'delete_page', 'flamingo_unspam_inbound_message' => 'delete_page' ); add_filter('flamingo_map_meta_cap', $fl_meta_caps);
and it ends up giving the editor rights to admin-level capabilities.
I have seen the example for specific users., but I would like to allow all editors this ability, but not authors.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using the flamingo_map_meta_cap filter’ is closed to new replies.