Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives
WooPayments::is_extension_active()
Check if the extension plugin is active.
Метод класса: WooPayments{}
Хуков нет.
Возвращает
true|false
. Whether the extension plugin is active.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_extension_active(): bool;
Код WooPayments::is_extension_active() WooPayments::is extension active WC 9.6.1
protected function is_extension_active(): bool { return class_exists( '\WC_Payments' ); }