WC_Admin_Menus::set_screen_option( bool|int $status, string $option, int $value )
Validate screen options on update.
Description Description
Parameters Parameters
- $status
-
(Required) Screen option value. Default false to skip.
- $option
-
(Required) The option name.
- $value
-
(Required) The number of rows to use.
Source Source
File: includes/admin/class-wc-admin-menus.php
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; }