WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Admin

FeaturePlugin::on_deactivation() public WC 1.0

Remove WooCommerce Admin scheduled actions on deactivate.

{} Это метод класса: FeaturePlugin{}

Хуков нет.

Возвращает

null.

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

$FeaturePlugin = new FeaturePlugin();
$FeaturePlugin->on_deactivation();

Код FeaturePlugin::on_deactivation() WC 4.7.1

<?php
public function on_deactivation() {
	// Don't clean up if the WooCommerce Admin package is in core.
	// NOTE: Any future divergence from the core package will need to be accounted for here.
	if ( defined( 'WC_ADMIN_PACKAGE_EXISTS' ) && WC_ADMIN_PACKAGE_EXISTS ) {
		return;
	}

	// Check if we are deactivating due to dependencies not being satisfied.
	// If WooCommerce is disabled we can't include files that depend upon it.
	if ( ! $this->has_satisfied_dependencies() ) {
		return;
	}

	$this->includes();
	ReportsSync::clear_queued_actions();
	WC_Admin_Notes::clear_queued_actions();
	wp_clear_scheduled_hook( 'wc_admin_daily' );
	wp_clear_scheduled_hook( 'generate_category_lookup_table' );
}