Automattic\WooCommerce\Internal\StockNotifications\Admin
MenusController::set_screen_option
Save screen options.
Метод класса: MenusController{}
Хуков нет.
Возвращает
bool|int.
Использование
$MenusController = new MenusController(); $MenusController->set_screen_option( $status, $option, $value );
- $status(true|false|int) (обязательный)
- The status of the screen option.
- $option(строка) (обязательный)
- The option name.
- $value(int) (обязательный)
- The value of the screen option.
Код MenusController::set_screen_option() MenusController::set screen option WC 11.2.2
public function set_screen_option( $status, $option, $value ) {
if ( 'stock_notifications_per_page' === $option ) {
return (int) $value;
}
return $status;
}