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

WooPaymentsService::is_extension_activeprivateWC 1.0

Check if the WooPayments plugin is active.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_extension_active(): bool;

WooPaymentsService::is_extension_active() code WC 10.7.0

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