Yoast\WP\SEO\Abilities\Infrastructure

Site_Representation_Field_Map::get_company_or_person_description │ private │ Yoast 1.0

Returns the description of the company_or_person field, which tells agents upfront when the site cannot be set to represent a person.

Метод класса: Site_Representation_Field_Map{}

Хуков нет.

Возвращает

string. The description.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_company_or_person_description(): string;

Код Site_Representation_Field_Map::get_company_or_person_description() Yoast 28.8

private function get_company_or_person_description(): string {
	$description = \__( 'Whether the site represents an organization ("company") or a person ("person").', 'wordpress-seo' );

	if ( ! $this->local_seo_active_conditional->is_met() ) {
		return $description;
	}

	return $description . ' ' . \sprintf(
		/* translators: %s expands to Yoast Local SEO. */
		\__( '%s is active on this site and requires the site to represent an organization, so it always does.', 'wordpress-seo' ),
		'Yoast Local SEO',
	);
}