WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Generators\Schema\Third_Party

Events_Calendar_Schema::get_tribe_schema() private Yoast 1.0

Get and return the schema markup for a collection of posts. If the posts array is empty, only the current post is returned.

{} Это метод класса: Events_Calendar_Schema{}

Хуки из метода
Возвращает

Массив. The tribe schema for these posts.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_tribe_schema( $posts );
$posts(массив)
The collection of posts we want schema markup for.
По умолчанию: []

Код Events_Calendar_Schema::get_tribe_schema() Yoast 17.2

private function get_tribe_schema( array $posts = [] ) {
	$args = [
		// We do not want the @context to be shown.
		'context' => false,
	];

	$tribe_data = Tribe__Events__JSON_LD__Event::instance()->get_data( $posts, $args );
	$type       = \strtolower( \esc_attr( Tribe__Events__JSON_LD__Event::instance()->type ) );

	foreach ( $tribe_data as $post_id => $_data ) {
		Tribe__Events__JSON_LD__Event::instance()->set_type( $post_id, $type );
		// Register this post as done already.
		Tribe__Events__JSON_LD__Event::instance()->register( $post_id );
	}

	/**
	 * Allows the event data to be modifed by themes and other plugins.
	 *
	 * @example yoast_tec_json_ld_thing_data
	 * @example yoast_tec_json_ld_event_data
	 *
	 * @param array $data objects representing the Google Markup for each event.
	 * @param array $args the arguments used to get data
	 */
	$tribe_data = \apply_filters( "yoast_tec_json_ld_{$type}_data", $tribe_data, $args );

	return $tribe_data;
}