• So, somehow my question was listed as resolved, but I just want to make sure
    that with the following code that I don’t break anything.

    The purpose of this code is to give permission to editors to delete,edit spam or messages.

    Also, this will show up on the admin panel for editors?

    ***Will this work and not break anything ? (most importantly ?? ) ***

    This will replace the ‘edit_users’ with ‘edit_pages’ in the array? to put in functions.php file:

    add_filter( ‘flamingo_map_meta_cap’, ‘custom_flamingo_map_meta_cap’ );

    function custom_flamingo_map_meta_cap( $meta_caps ) {
    $meta_caps = array_merge( $meta_caps, array(
    ‘flamingo_edit_inbound_message’ => ‘edit_pages’,
    ‘flamingo_edit_inbound_messages’ => ‘edit_pages’,
    ‘flamingo_delete_inbound_message’ => ‘edit_pages’,
    ‘flamingo_delete_inbound_messages’ => ‘edit_pages’,
    ‘flamingo_spam_inbound_message’ => ‘edit_pages’,
    ‘flamingo_unspam_inbound_message’ => ‘edit_pages’,
    ) );

    return $meta_caps;
    }

    Thank you!!!

  • The topic ‘Give permission for editors to delete messages and spam.’ is closed to new replies.