Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

Table::items_per_page()privateWC 1.0

Sets up an items-per-page control.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Table::items_per_page() WC 7.1.0

private function items_per_page() {
	add_screen_option(
		'per_page',
		array(
			'default' => 20,
			'option'  => 'edit_approved_directories_per_page',
		)
	);

	add_filter( 'set_screen_option_edit_approved_directories_per_page', array( $this, 'set_items_per_page' ), 10, 3 );
}