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', 'filter_function_name_835', 10, 2 ); function filter_function_name_835( $data, $args ){ // filter... return $data; }
- $data(массив)
- objects representing the Google Markup for each event.
- $args(массив)
- the arguments used to get data
Где вызывается хук
yoast_tec_json_ld_(type)_data
yoast/src/generators/schema/third-party/events-calendar-schema.php 121
$tribe_data = \apply_filters( "yoast_tec_json_ld_{$type}_data", $tribe_data, $args );