Yoast\WP\SEO\AI\Content_Planner\Domain

Content_Suggestion::to_arraypublicYoast 1.0

Returns this object in array format.

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

Хуков нет.

Возвращает

Массив<Строку,. string|array<string, int>> The content suggestion as an array.

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

$Content_Suggestion = new Content_Suggestion();
$Content_Suggestion->to_array(): array;

Код Content_Suggestion::to_array() Yoast 27.8

public function to_array(): array {
	return [
		'title'            => $this->title,
		'intent'           => $this->intent,
		'explanation'      => $this->explanation,
		'keyphrase'        => $this->keyphrase,
		'meta_description' => $this->meta_description,
		'category'         => $this->category->to_array(),
	];
}