Contact Form 7

Contact Form 7 banner

Contact Form 7 banner

This add-on adds support for Takayuki Miyoshi’s Contact Form 7 plugin.

The add-on allows for automatic broadcasting of forms when the shortcode is found in a post.

The add-on automatically detects the [contact-form-7 id="123"] shortcode and broadcasts the associated form to each child blog.

Notes

The add-on detects the contact form shortcode in the post text and automatically broadcasts the associated contact form.

The contact form is updated on the child each time the shortcode is broadcasted.

Since Contact Form 7 does not use the standard WordPress post list view nor post editor for its forms, the Broadcast meta box and associated broadcast column and bulk actions are never visible. A tip for broadcasting lots of forms at the same time, and keeping them all updated, is to use a hidden post containing all of the contact form shortcodes, and broadcast that post to the blogs you wish. The add-on will detect the shortcodes and broadcast, and link, the contact forms to each child blog.

Where to buy

This add-on is a part of the following packs:

Article features

This add-on is featured in the following articles:

Comments

  1. If I understood correctly, after we added to the technical (hidden) cpt post with all the shortcodes, we need to update it immediately after the contact form 7 update.

    You can use the following code (replacing your post type and post title)

    add_action(‘wpcf7_after_save’, ‘update_tech_post’, 10, 1);
    function update_tech_post($args)
    {
       if (get_current_blog_id() != 1) {
          return;
       }

       global$wpdb;
       $tech_post_id = $wpdb->get_var(“SELECT ID FROM wp_posts WHERE post_title = ‘Broadcast Contact Forms’ AND post_type = ‘tech'”);

       ThreeWP_Broadcast()->api()->update_children($tech_post_id);
    }

    1. Looks good to me. I hope someone else finds a use for the code also!

Leave a Reply

Your email address will not be published. Required fields are marked *