Automattic\WooCommerce\Internal\StockNotifications\Admin
MenusController::notifications_page
Displays the Notifications list table.
Method of the class: MenusController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$MenusController = new MenusController(); $MenusController->notifications_page();
MenusController::notifications_page() MenusController::notifications page code WC 10.3.6
public function notifications_page() {
$action = isset( $_GET['notification_action'] ) ? sanitize_text_field( wp_unslash( $_GET['notification_action'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( ! in_array( $action, array( 'create', 'edit' ), true ) ) {
$action = '';
}
switch ( $action ) {
case 'create':
$this->notifications_page->create();
break;
case 'edit':
$this->notifications_page->edit();
break;
default:
$this->notifications_page->output();
break;
}
}