ActionScheduler_AdminView::register_menu()publicWC 1.0

Include Action Scheduler's administration under the Tools menu.

A menu under the Tools menu is important for backward compatibility (as that's where it started), and also provides more convenient access than the WooCommerce System Status page, and for sites where WooCommerce isn't active.

Метод класса: ActionScheduler_AdminView{}

Хуков нет.


null. Ничего.


$ActionScheduler_AdminView = new ActionScheduler_AdminView();

Код ActionScheduler_AdminView::register_menu() WC 7.7.2

public function register_menu() {
	$hook_suffix = add_submenu_page(
		__( 'Scheduled Actions', 'woocommerce' ),
		__( 'Scheduled Actions', 'woocommerce' ),
		array( $this, 'render_admin_ui' )
	add_action( 'load-' . $hook_suffix , array( $this, 'process_admin_ui' ) );