Automattic\WooCommerce\Internal\StockNotifications\Admin

MenusController::set_screen_optionpublicWC 1.0

Save screen options.

Method of the class: MenusController{}

No Hooks.

Returns

Int.

Usage

$MenusController = new MenusController();
$MenusController->set_screen_option( $status, $option, $value ): int;
$status(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() code WC 10.3.6

public function set_screen_option( $status, $option, $value ): int {
	if ( 'stock_notifications_per_page' === $option ) {
		return (int) $value;
	}
	return $status;
}