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{}

No Hooks.

Return

null. Nothing.

Usage

$result = RemoteInboxNotificationsEngine::run_on_deactivated_plugin( $plugin );
$plugin(string) (required)
Path to the plugin file relative to the plugins directory.

Code of RemoteInboxNotificationsEngine::run_on_deactivated_plugin() WC 7.1.0

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