Automattic\WooCommerce\Admin\RemoteInboxNotifications
RemoteInboxNotificationsEngine::run_on_deactivated_plugin()
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
. Ничего (null).
Использование
$result = RemoteInboxNotificationsEngine::run_on_deactivated_plugin( $plugin );
- $plugin(строка) (обязательный)
- Path to the plugin file relative to the plugins directory.
Код RemoteInboxNotificationsEngine::run_on_deactivated_plugin() RemoteInboxNotificationsEngine::run on deactivated plugin WC 9.8.1
public static function run_on_deactivated_plugin( $plugin ) { PluginsProvider::set_deactivated_plugin( $plugin ); self::run(); }