wpcf7_save_contact_form

The Contact Form 7 wpcf7 save contact form hook.

Description

do_action( 'wpcf7_save_contact_form', (unknown) $contact_form, (unknown) $args, (unknown) $context ); 

Parameters (3)

0. $contact_form (unknown)
The contact form.
1. $args (unknown)
The args.
2. $context (unknown)
The context.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpcf7_save_contact_form', $contact_form, $args, $context ); 
The following example is for adding a hook callback.
  1. // define the wpcf7_save_contact_form callback 
  2. function action_wpcf7_save_contact_form( $contact_form, $args, $context ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpcf7_save_contact_form', 'action_wpcf7_save_contact_form', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpcf7_save_contact_form', 'action_wpcf7_save_contact_form', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/contact-form-functions.php  
  1. do_action( 'wpcf7_save_contact_form', $contact_form, $args, $context );