WordPress at Your Fingertips
function is not described

WC_Admin_Menus::set_screen_option() public WC 1.0

Validate screen options on update.

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

No Hooks.


null. Nothing.


$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->set_screen_option( $status, $option, $value );
$status(true|false|int) (required)
Screen option value.
Default: false to skip
$option(string) (required)
The option name.
$value(int) (required)
The number of rows to use.

Code of WC_Admin_Menus::set_screen_option() WC 5.9.0

public function set_screen_option( $status, $option, $value ) {
	if ( in_array( $option, array( 'woocommerce_keys_per_page', 'woocommerce_webhooks_per_page' ), true ) ) {
		return $value;

	return $status;