Automattic\WooCommerce\Admin\RemoteInboxNotifications
RemoteInboxNotificationsEngine::run_on_deactivated_plugin() public WC 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
. 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 5.1.0
public static function run_on_deactivated_plugin( $plugin ) {
PluginsProvider::set_deactivated_plugin( $plugin );
self::run();
}