Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::is_extension_activeprivateWC 1.0

Check if the WooPayments plugin is active.

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

Хуков нет.

Возвращает

true|false.

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

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

Код WooPaymentsService::is_extension_active() WC 10.8.1

private function is_extension_active(): bool {
	return $this->proxy->call_function( 'class_exists', '\WC_Payments' );
}