wpcf7_post_edit_form_tag

The Contact Form 7 wpcf7 post edit form tag hook.

Description

do_action( 'wpcf7_post_edit_form_tag' ); 

Usage

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

Defined (1)

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

/admin/edit-contact-form.php  
  1. <form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id ), menu_page_url( 'wpcf7', false ) ) ); ?>" id="wpcf7-admin-form-element"<?php do_action( 'wpcf7_post_edit_form_tag' ); ?>>