The contact-form-7 wpcf7 form tag data option hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_form_tag_data_option', null, $options, $args );
$null
$options
$args
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)
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 );