• Resolved dondela

    (@dondela)


    Dear support,

    is there a way to show the Flamingo-menu to editors?

    Thanks for any help

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You can control it using the flamingo_map_meta_cap filter hook (see includes/capabilities.php). To see inbound messages, you need the flamingo_edit_inbound_message and flamingo_edit_inbound_messages capabilities. Map them to a standard capability that an editor role user has, such as edit_pages.

    In another thread I have answered with a coding example.

    Thread Starter dondela

    (@dondela)

    Great, thank you!

    I added this code to the functions.php and now it shows flamingo-messages to editors.

    add_filter( 'flamingo_map_meta_cap', function( $meta_caps ) {
    $meta_caps = array_merge( $meta_caps, array(
    'flamingo_edit_inbound_message' => 'edit_pages',
    'flamingo_edit_inbound_messages' => 'edit_pages',
    ) );
    return $meta_caps;
    } );

    Is there also a code to show the flamingo-adressbook to editors?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    For the Address Book menu page, allow the flamingo_edit_contact and flamingo_edit_contactscaps for editors.

    Thread Starter dondela

    (@dondela)

    Perfect, thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Show Flamingo to editors’ is closed to new replies.