Automattic\WooCommerce\Internal\StockNotifications\Admin
MenusController::set_screen_option
Save screen options.
Method of the class: MenusController{}
No Hooks.
Returns
bool|int.
Usage
$MenusController = new MenusController(); $MenusController->set_screen_option( $status, $option, $value );
- $status(true|false|int) (required)
- The status of the screen option.
- $option(string) (required)
- The option name.
- $value(int) (required)
- The value of the screen option.
MenusController::set_screen_option() MenusController::set screen option code WC 11.3.0
public function set_screen_option( $status, $option, $value ) {
if ( 'stock_notifications_per_page' === $option ) {
return (int) $value;
}
return $status;
}