Automattic\WooCommerce\Internal\Admin\Orders
ListTable::items_per_page
Sets up an items-per-page control.
Method of the class: ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->items_per_page(): void;
ListTable::items_per_page() ListTable::items per page code WC 10.5.0
private function items_per_page(): void {
add_screen_option(
'per_page',
array(
'default' => 20,
'option' => 'edit_' . $this->order_type . '_per_page',
)
);
}