ActionScheduler_Abstract_ListTable::get_items_offset
Returns the number of items to offset/skip for this current view.
Method of the class: ActionScheduler_Abstract_ListTable{}
No Hooks.
Returns
Int.
Usage
// protected - for code of main (parent) or child class $result = $this->get_items_offset();
ActionScheduler_Abstract_ListTable::get_items_offset() ActionScheduler Abstract ListTable::get items offset code WC 10.4.3
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;
}