Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::on_admin_init()public staticWC 1.0

Init is continued via admin_init so that WC is loaded when the product query is used, otherwise the query generates a "0 = 1" in the WHERE condition and thus doesn't return any results.

Method of the class: RemoteInboxNotificationsEngine{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = RemoteInboxNotificationsEngine::on_admin_init();

RemoteInboxNotificationsEngine::on_admin_init() code WC 9.3.3

public static function on_admin_init() {
	add_action( 'activated_plugin', array( __CLASS__, 'run' ) );
	add_action( 'deactivated_plugin', array( __CLASS__, 'run_on_deactivated_plugin' ), 10, 1 );
	StoredStateSetupForProducts::admin_init();

	// Pre-fetch stored state so it has the correct initial values.
	self::get_stored_state();
}