Yoast\WP\SEO\Bulk_Editor\Domain\Posts

Posts_Page::get_total_pages │ public │ Yoast 1.0

Returns the total number of pages.

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

Хуков нет.

Возвращает

int. The total number of pages.

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

$Posts_Page = new Posts_Page();
$Posts_Page->get_total_pages(): int;

Код Posts_Page::get_total_pages() Yoast 28.9

public function get_total_pages(): int {
	if ( $this->per_page < 1 ) {
		return 0;
	}

	return (int) \ceil( $this->total / $this->per_page );
}