ActionScheduler_Abstract_ListTable::get_items_offset()protectedWC 1.0

Returns the number of items to offset/skip for this current view.

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();

ActionScheduler_Abstract_ListTable::get_items_offset() code WC 8.7.0

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;
}