Show for user role AND enable editing
-
I found this code to display flamingo for the editor role. It’s working however I can’t access the detailed info. In admin role I can click at the inbound messages, that doesn’t work with the code above. How can I add support for editing/showing the whole message
Thats the page I mean ?page=flamingo_inbound&post=224&action=edit
add_filter( 'flamingo_map_meta_cap', 'yourownprefixhere_flamingo_map_meta_cap' ); function yourownprefixhere_flamingo_map_meta_cap( $meta_caps ) { $meta_caps = array_merge( $meta_caps, array( 'flamingo_edit_contacts' => 'edit_pages', 'flamingo_edit_inbound_messages' => 'edit_pages', ) ); return $meta_caps; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Show for user role AND enable editing’ is closed to new replies.