ActionScheduler_Abstract_ListTable::get_items_offset() protected WC 1.0
Returns the number of items to offset/skip for this current view.
{} It's a method of the class: ActionScheduler_Abstract_ListTable{}
No Hooks.
Return
Int.
Usage
// protected - for code of main (parent) or child class $result = $this->get_items_offset();
Code of ActionScheduler_Abstract_ListTable::get_items_offset() ActionScheduler Abstract ListTable::get items offset WC 5.0.0
protected function get_items_offset() {
$per_page = $this->get_items_per_page( $this->package . '_items_per_page', $this->items_per_page );
$current_page = $this->get_pagenum();
if ( 1 < $current_page ) {
$offset = $per_page * ( $current_page - 1 );
} else {
$offset = 0;
}
return $offset;
}