Yoast\WP\SEO\Abilities\User_Interface

SEO_Data_Output_Schema::rendered │ private │ Yoast 1.0

Returns the property of the rendered companion of a stored field.

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

Хуков нет.

Возвращает

array<string, mixed>. The property.

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

// private - только в коде основоного (родительского) класса
$result = $this->rendered( $field ): array;
$field(строка) (обязательный)
The human-readable field name.

Код SEO_Data_Output_Schema::rendered() Yoast 28.9

private function rendered( string $field ): array {
	return [
		'type'        => [ 'string', 'null' ],
		'description' => \sprintf(
			/* translators: %s expands to the name of the SEO field, e.g. "SEO title". */
			\__( 'The %s as output on the front end: the global default template applied when no custom value is set, with snippet variables expanded. Null when nothing is output.', 'wordpress-seo' ),
			$field,
		),
	];
}