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

Yoast\WP\SEO\Generators

Schema_Generator::protected_webpage_schema() protected Yoast 1.0

Adapts the WebPage graph piece for password-protected posts.

It should only have certain whitelisted properties. The type should always be WebPage.

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

Хуков нет.

Возвращает

Массив. The WebPage graph piece that has been adapted for password-protected posts.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->protected_webpage_schema( $graph_piece );
$graph_piece(массив) (обязательный)
The WebPage graph piece that should be adapted for password-protected posts.

Код Schema_Generator::protected_webpage_schema() Yoast 17.1

public function protected_webpage_schema( $graph_piece ) {
	$properties_to_show = \array_flip(
		[
			'@type',
			'@id',
			'url',
			'name',
			'isPartOf',
			'inLanguage',
			'datePublished',
			'dateModified',
			'breadcrumb',
		]
	);

	$graph_piece          = \array_intersect_key( $graph_piece, $properties_to_show );
	$graph_piece['@type'] = 'WebPage';

	return $graph_piece;
}