wpcf7_form_tag_data_option хук-фильтрCF7 1.0

Использование

add_filter( 'wpcf7_form_tag_data_option', 'wp_kama_wpcf7_form_tag_data_option_filter', 10, 3 );

/**
 * Function for `wpcf7_form_tag_data_option` filter-hook.
 * 
 * @param  $null    
 * @param  $options 
 * @param  $args    
 *
 * @return 
 */
function wp_kama_wpcf7_form_tag_data_option_filter( $null, $options, $args ){

	// filter...
	return $null;
}
$null
-
$options
-
$args
-

Где вызывается хук

WPCF7_FormTag::get_data_option()
wpcf7_form_tag_data_option
contact-form-7/includes/form-tag.php 437
return apply_filters( 'wpcf7_form_tag_data_option', null, $options, $args );

Где используется хук в Contact Form 7

contact-form-7/modules/listo.php 7
add_filter( 'wpcf7_form_tag_data_option', 'wpcf7_listo', 10, 3 );