yoast_tec_json_ld_(type)_data хук-фильтрYoast 1.0

Allows the event data to be modifed by themes and other plugins.

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

add_filter( 'yoast_tec_json_ld_(type)_data', 'wp_kama_yoast_tec_json_ld_type_data_filter', 10, 2 );

/**
 * Function for `yoast_tec_json_ld_(type)_data` filter-hook.
 * 
 * @param array $data objects representing the Google Markup for each event.
 * @param array $args the arguments used to get data
 *
 * @return array
 */
function wp_kama_yoast_tec_json_ld_type_data_filter( $data, $args ){

	// filter...
	return $data;
}
$data(массив)
objects representing the Google Markup for each event.
$args(массив)
the arguments used to get data

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

Events_Calendar_Schema::get_tribe_schema()
yoast_tec_json_ld_(type)_data
yoast/src/generators/schema/third-party/events-calendar-schema.php 124
$tribe_data = \apply_filters( "yoast_tec_json_ld_{$type}_data", $tribe_data, $args );

Где используется хук в Yoast SEO

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