WordPress at Your Fingertips
function is not described

WC_Admin_API_Keys::screen_option() public WC 1.0

Add screen option.

{} It's a method of the class: WC_Admin_API_Keys{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_API_Keys = new WC_Admin_API_Keys();
$WC_Admin_API_Keys->screen_option();

Code of WC_Admin_API_Keys::screen_option() WC 5.9.0

public function screen_option() {
	global $keys_table_list;

	if ( ! isset( $_GET['create-key'] ) && ! isset( $_GET['edit-key'] ) && $this->is_api_keys_settings_page() ) { // WPCS: input var okay, CSRF ok.
		$keys_table_list = new WC_Admin_API_Keys_Table_List();

		// Add screen option.
		add_screen_option(
			'per_page',
			array(
				'default' => 10,
				'option'  => 'woocommerce_keys_per_page',
			)
		);
	}
}