Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::run_on_deactivated_plugin()public staticWC 1.0

The deactivated_plugin hook happens before the option is updated (https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin.php#L826) so this captures the deactivated plugin path and pushes it into the PluginsProvider.

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

Хуков нет.

Возвращает

null. Ничего.

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

$result = RemoteInboxNotificationsEngine::run_on_deactivated_plugin( $plugin );
$plugin(строка) (обязательный)
Path to the plugin file relative to the plugins directory.

Код RemoteInboxNotificationsEngine::run_on_deactivated_plugin() WC 7.1.0

public static function run_on_deactivated_plugin( $plugin ) {
	PluginsProvider::set_deactivated_plugin( $plugin );
	self::run();
}