WC_Admin_Menus::set_screen_option()
Validate screen options on update.
Метод класса: WC_Admin_Menus{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Admin_Menus = new WC_Admin_Menus(); $WC_Admin_Menus->set_screen_option( $status, $option, $value );
- $status(true|false|int) (обязательный)
- Screen option value.
По умолчанию: false to skip - $option(строка) (обязательный)
- The option name.
- $value(int) (обязательный)
- The number of rows to use.
Код WC_Admin_Menus::set_screen_option() WC Admin Menus::set screen option WC 7.3.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; }