Skip to content

[Support request] Contact Form 7 and Flamingo compatibility

Home Forums Plugin / Theme Compat Contact Form 7 and Flamingo compatibility

This topic contains 2 replies, has 2 voices, and was last updated by 11 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #24664 Reply

    I use the Contact Form 7 plugin as a lot of people do. Since it creates shortcode and isn’t a post in a normal sense that I can tell, I ended up having to add the following as a function:

    add_filter('wpcf7_map_meta_cap', 'change_cf7_capabilities',10,1);
    function change_cf7_capabilities($meta_caps) {
    $meta_caps = array(
    'wpcf7_edit_contact_form' => 'edit_dashboard',
    'wpcf7_edit_contact_forms' => 'edit_dashboard',
    'wpcf7_read_contact_forms' => 'edit_dashboard',
    'wpcf7_delete_contact_form' => 'edit_dashboard',
    return $meta_caps;

    Also, I use the following that is along the same lines that just gives blanket rights as read only to non-admins:
    add_filter( 'flamingo_map_meta_cap', 'MarkEdit_flamingo_map_meta_cap' );
    function MarkEdit_flamingo_map_meta_cap( $meta_caps ) {
    $meta_caps = array_merge( $meta_caps, array(
    'flamingo_edit_contacts' => 'read',
    'flamingo_edit_inbound_messages' => 'read',
    ) );
    return $meta_caps;

    In the role capabilities section I load the role I want to give access to Contact Form 7. I add the ability to edit dashboard and save. That works for a few. However, I am hoping that there will be a way in the future to possibly expand this out a bit. Any thoughts or additional ideas would be appreciated.

    #24665 Reply

    [ login required ]

    #24666 Reply

    [ login required ]

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.