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.

Method of the class: RemoteInboxNotificationsEngine{}

No Hooks.

Return

null. Nothing (null).

Usage

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

RemoteInboxNotificationsEngine::run_on_deactivated_plugin() code WC 8.7.0

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