Yoast\WP\SEO\AI\Content_Planner\Domain

Post_List::to_minimal_array │ public │ Yoast 1.0

Returns the minimal array representation suitable for the REST response.

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

Хуков нет.

Возвращает

array<array<string,. string>> The posts as minimal arrays.

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

$Post_List = new Post_List();
$Post_List->to_minimal_array(): array;

Код Post_List::to_minimal_array() Yoast 28.9

public function to_minimal_array(): array {
	$result = [];
	foreach ( $this->posts as $post ) {
		$result[] = $post->to_minimal_array();
	}

	return $result;
}