Yoast\WP\SEO\Bulk_Editor\Domain\Posts
Posts_Page::get_total_pages
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() 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 );
}