Yoast\WP\SEO\AI\Content_Planner\Domain

Content_Suggestion_Response::to_arraypublicYoast 1.0

Returns this object in array format.

Uses the minimal Post representation so editor-only metadata (focus keyphrase, cornerstone flag, schema type) never crosses the REST boundary into the browser.

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

Хуков нет.

Возвращает

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

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

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

Код Content_Suggestion_Response::to_array() Yoast 28.3

public function to_array(): array {
	$result                   = $this->suggestions->to_array();
	$result['recent_content'] = $this->recent_content->to_minimal_array();
	return $result;
}