Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::is_extension_active
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() WooPaymentsService::is extension active code WC 10.7.0
private function is_extension_active(): bool {
return $this->proxy->call_function( 'class_exists', '\WC_Payments' );
}