Automattic\WooCommerce\Internal\StockNotifications\Admin
MenusController::add_screen_options
Add screen options support.
Method of the class: MenusController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$MenusController = new MenusController(); $MenusController->add_screen_options(): void;
MenusController::add_screen_options() MenusController::add screen options code WC 10.3.6
public function add_screen_options(): void {
$screen = get_current_screen();
if ( ! $screen ) {
return;
}
add_screen_option(
'per_page',
array(
'label' => __( 'Notifications per page', 'woocommerce' ),
'default' => 10,
'option' => 'stock_notifications_per_page',
)
);
}