Automattic\WooCommerce\Blocks\Payments\Integrations
PayPal::is_active()
Returns if this payment method should be active. If false, the scripts will not be enqueued.
Метод класса: PayPal{}
Хуков нет.
Возвращает
true|false
.
Использование
$PayPal = new PayPal(); $PayPal->is_active();
Код PayPal::is_active() PayPal::is active WC 9.6.1
public function is_active() { return filter_var( $this->get_setting( 'enabled', false ), FILTER_VALIDATE_BOOLEAN ); }