WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Contact-Form-7: 3rd-Party Integration

Send Contact Form 7 submissions to a 3rd-party Service, like a CRM. Multiple configurable services, custom field mapping, pre/post processing.

Hooks

  1. add_action('Cf73rdPartyIntegration_service_a#',...
    • hook for each service, indicated by the # - this is given in the 'Hooks' section of each service
    • provide a function which takes $response, &$results as arguments
    • allows you to perform further processing on the service response, and directly alter the processing results, provided as array('success'=>false, 'errors'=>false, 'attach'=>'', 'message' => '');
      • success = true or false - change whether the service request is treated as "correct" or not
      • errors = an array of error messages to return to the form
      • attach = text to attach to the end of the email body
      • message = the message notification shown (from CF7 ajax response) below the form
    • note that the basic "success condition" may be augmented here by post processing
  2. add_filter('Cf73rdPartyIntegration_service_filter_post_#, ...
    • hook for each service, indicated by the # - this is given in the 'Hooks' section of each service
    • allows you to programmatically alter the request parameters sent to the service
  3. add_action('Cf73rdPartyIntegration_onfailure', 'mycf7_fail', 10, 3);
    • hook to modify the CF7 object if service failure of any kind occurs -- use like: function mycf7_fail(&$cf7, $service, $response) { $cf7->skip_mail = true; // stop email from being sent // hijack message to notify user ///TODO: how to modify the "mail_sent" variable so the message isn't green? on_sent_ok hack? $cf7->messages['mail_sent_ok'] = 'Could not complete mail request: ' . $response['safe_message']; }
    • needs some way to alter the mail_sent return variable in CF7 to better indicate an error - no way currently to access it directly.

Basic examples provided for service hooks directly on plugin Admin page (collapsed box "Examples of callback hooks"). Code samples for common CRMS included in the /3rd-parties plugin folder.

About AtlanticBT

From About AtlanticBT.

Our Story

Atlantic Business Technologies, Inc. has been in existence since the relative infancy of the Internet. Since March of 1998, Atlantic BT has become one of the largest and fastest growing web development companies in Raleigh, NC. While our original business goal was to develop new software and systems for the medical and pharmaceutical industries, we quickly expanded into a business that provides fully customized, functional websites and Internet solutions to small, medium and larger national businesses.

Our President, Jon Jordan, founded Atlantic BT on the philosophy that Internet solutions should be customized individually for each client's specialized needs. Today we have expanded his vision to provide unique custom solutions to a growing account base of more than 600 clients. We offer end-to-end solutions for all clients including professional business website design, e-commerce and programming solutions, business grade web hosting, web strategy and all facets of internet marketing.

Who We Are

The Atlantic BT Team is made up of friendly and knowledgeable professionals in every department who, with their own unique talents, share a wealth of industry experience. Because of this, Atlantic BT always has a specialist on hand to address each client's individual needs. Due to the fact that the industry is constantly changing, all of our specialists continuously study the latest trends in all aspects of internet technology. Thanks to our ongoing research in the web designing, programming, hosting and internet marketing fields, we are able to offer our clients the most recent and relevant ideas, suggestions and services.

Requires: 2.8 or higher
Compatible up to: 3.3.2
Last Updated: 2014-3-9
Downloads: 16,645

Ratings

5 stars
5 out of 5 stars

Support

1 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,2,0
0,1,0 100,1,1
100,1,1
100,1,1