Yoast\WP\SEO\Abilities\User_Interface

SEO_Data_Output_Schema::raw │ private │ Yoast 1.0

Returns the property of a stored field.

Null means "no custom value set", not "nothing is output".

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

Хуков нет.

Возвращает

array<string, mixed>. The property.

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

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

Код SEO_Data_Output_Schema::raw() Yoast 28.9

private function raw( string $field ): array {
	return [
		'type'        => [ 'string', 'null' ],
		'description' => \sprintf(
			/* translators: %s expands to the name of the SEO field, e.g. "SEO title". */
			\__( 'The custom %s as stored, which may contain unexpanded snippet variables. Null when no custom value is set; the rendered companion field carries what is actually output.', 'wordpress-seo' ),
			$field,
		),
	];
}