Automattic\WooCommerce\Internal\Admin\Orders

ListTable::items_per_page()privateWC 1.0

Sets up an items-per-page control.

Метод класса: ListTable{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->items_per_page(): void;

Code of ListTable::items_per_page() WC 7.1.0

private function items_per_page(): void {
	add_screen_option(
		'per_page',
		array(
			'default' => 20,
			'option'  => 'edit_orders_per_page',
		)
	);
}