WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::on_admin_init() public WC 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.

{} Это метод класса: RemoteInboxNotificationsEngine{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$result = RemoteInboxNotificationsEngine::on_admin_init();

Код RemoteInboxNotificationsEngine::on_admin_init() WC 4.7.1

<?php
public static function on_admin_init() {
	if ( ! Loader::is_feature_enabled( 'remote-inbox-notifications' ) ) {
		return;
	}

	add_action( 'activated_plugin', array( __CLASS__, 'run' ) );
	add_action( 'deactivated_plugin', array( __CLASS__, 'run_on_deactivated_plugin' ), 10, 1 );
	StoredStateSetupForProducts::init();

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