Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

WooPayments::is_extension_active │ protected │ WC 1.0

Check if the extension plugin is active.

Метод класса: WooPayments{}

Хуков нет.

Возвращает

boolean. Whether the extension plugin is active.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_extension_active(): bool;

Код WooPayments::is_extension_active() WC 11.3.0

protected function is_extension_active(): bool {
	return class_exists( '\WC_Payments' );
}