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

    (@takayukister)

    You can control the access privileges using the flamingo_map_meta_cap filter hook. As Flamingo requires the flamingo_edit_inbound_message and flamingo_edit_inbound_messages capabilities when you access the Inbound Messages screen, and the Editor and higher roles have the edit_pages capability, you can allow Editor users to access the Inbound Messages screen by adding custom code like the following:

    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;
    } );
    Thread Starter Kyle Scheuerlein

    (@kylesureline)

    Great! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Granting access to the Editor Role?’ is closed to new replies.