ActionScheduler_Abstract_ListTable::get_items_offset
Returns the number of items to offset/skip for this current view.
Метод класса: ActionScheduler_Abstract_ListTable{}
Хуков нет.
Возвращает
int.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_items_offset();
Код ActionScheduler_Abstract_ListTable::get_items_offset() ActionScheduler Abstract ListTable::get items offset WC 11.1.2
protected function get_items_offset() {
$per_page = $this->get_items_per_page( $this->get_per_page_option_name(), $this->items_per_page );
$current_page = $this->get_pagenum();
if ( 1 < $current_page ) {
$offset = $per_page * ( $current_page - 1 );
} else {
$offset = 0;
}
return $offset;
}