Yoast\WP\SEO\Bulk_Editor\Domain\Posts

Posts_Page::to_array │ public │ Yoast 1.0

Parses the page to the expected key value representation.

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

Хуков нет.

Возвращает

array<string,. int|array<array<string, int|string>>> The page presented as the expected key value representation.

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

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

Код Posts_Page::to_array() Yoast 28.9

public function to_array(): array {
	return [
		'posts'       => $this->posts->to_array(),
		'total'       => $this->total,
		'total_pages' => $this->get_total_pages(),
		'page'        => $this->page,
		'per_page'    => $this->per_page,
	];
}