wpcf7_form_tag_data_option

The contact-form-7 wpcf7 form tag data option hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_form_tag_data_option', null, $options, $args );

Parameters

  1. $null

  2. $options

  3. $args


Usage

The following example is for adding a hook callback.

// define the wpcf7_form_tag_data_option callback 
function custom_wpcf7_form_tag_data_option( $null, $options, $args ){ 
   //custom code here
    return $null
} 

//add the action 
add_filter('wpcf7_form_tag_data_option', 'custom_wpcf7_form_tag_data_option', 10, 3)

Defined

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

contact-form-7/includes/form-tag.php

return apply_filters( 'wpcf7_form_tag_data_option', null, $options, $args );