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

Yoast\WP\SEO\Generators\Schema

Person::site_represents_current_author() protected Yoast 1.0

Checks the site is represented by the same person as this indexable.

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

Хуков нет.

Возвращает

true/false. True when the site is represented by the same person as this indexable.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->site_represents_current_author();

Код Person::site_represents_current_author() Yoast 15.6.2

<?php
protected function site_represents_current_author() {
	// Can only be the case when the site represents a user.
	if ( $this->context->site_represents !== 'person' ) {
		return false;
	}

	// Article post from the same user as the site represents.
	if (
		$this->context->indexable->object_type === 'post'
		&& $this->helpers->schema->article->is_author_supported( $this->context->indexable->object_sub_type )
		&& $this->context->schema_article_type !== 'None'
	) {
		return $this->context->site_user_id === $this->context->indexable->author_id;
	}

	// Author archive from the same user as the site represents.
	return $this->context->indexable->object_type === 'user' && $this->context->site_user_id === $this->context->indexable->object_id;
}