Yoast\WP\SEO\Abilities\User_Interface

SEO_Data_Output_Schema::get_shared_properties │ private │ Yoast 1.0

Returns the properties of the SEO fields every entity type shares.

The descriptions don't name the entity type, as a noun inserted into a translatable sentence can't be translated correctly.

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

Хуков нет.

Возвращает

array<string, mixed>. The shared properties, keyed by output-schema property name.

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

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

Код SEO_Data_Output_Schema::get_shared_properties() Yoast 28.9

private function get_shared_properties(): array {
	return [
		'seo_title'                       => $this->raw( \__( 'SEO title', 'wordpress-seo' ) ),
		'seo_title_rendered'              => $this->rendered( \__( 'SEO title', 'wordpress-seo' ) ),
		'meta_description'                => $this->raw( \__( 'meta description', 'wordpress-seo' ) ),
		'meta_description_rendered'       => $this->rendered( \__( 'meta description', 'wordpress-seo' ) ),
		'focus_keyphrase'                 => [ 'type' => [ 'string', 'null' ] ],
		'is_cornerstone'                  => [ 'type' => 'boolean' ],
		'open_graph_title'                => $this->raw( \__( 'Open Graph title', 'wordpress-seo' ) ),
		'open_graph_title_rendered'       => $this->rendered( \__( 'Open Graph title', 'wordpress-seo' ) ),
		'open_graph_description'          => $this->raw( \__( 'Open Graph description', 'wordpress-seo' ) ),
		'open_graph_description_rendered' => $this->rendered( \__( 'Open Graph description', 'wordpress-seo' ) ),
		'twitter_title'                   => $this->raw( \__( 'X title', 'wordpress-seo' ) ),
		'twitter_title_rendered'          => $this->rendered( \__( 'X title', 'wordpress-seo' ) ),
		'twitter_description'             => $this->raw( \__( 'X description', 'wordpress-seo' ) ),
		'twitter_description_rendered'    => $this->rendered( \__( 'X description', 'wordpress-seo' ) ),
		'seo_score'                       => $this->score( \__( 'SEO analysis', 'wordpress-seo' ) ),
		'readability_score'               => $this->score( \__( 'readability analysis', 'wordpress-seo' ) ),
		'inclusive_language_score'        => $this->score( \__( 'inclusive language analysis', 'wordpress-seo' ) ),
	];
}