wpcf7_form_tag
The Contact Form 7 wpcf7 form tag hook.
Description
Parameters (2)
- 0. $scanned_tag (unknown)
- The scanned tag.
- 1. $replace (unknown)
- The replace.
Usage
- To run the hook, copy the example below.
- $scanned_tag = apply_filters( 'wpcf7_form_tag', $scanned_tag, $replace );
- if ( !empty( $scanned_tag ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wpcf7_form_tag callback
- function filter_wpcf7_form_tag( $scanned_tag, $replace ) {
- // make filter magic happen here...
- return $scanned_tag;
- };
- // add the filter
- add_filter( 'wpcf7_form_tag', 'filter_wpcf7_form_tag', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wpcf7_form_tag', 'filter_wpcf7_form_tag', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /includes/form-tags-manager.php
- $scanned_tag = apply_filters( 'wpcf7_form_tag', $scanned_tag, $replace );