Automattic\WooCommerce\Internal\Admin

WcPayWelcomePage::is_wcpay_activeprivateWC 1.0

Check if the WooPayments plugin is active.

Method of the class: WcPayWelcomePage{}

No Hooks.

Returns

true|false.

Usage

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

WcPayWelcomePage::is_wcpay_active() code WC 10.3.6

private function is_wcpay_active(): bool {
	return class_exists( '\WC_Payments' );
}