ActionScheduler_Abstract_ListTable::get_items_offset()protectedWC 1.0

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