WC_Gateway_Paypal_Buttons::is_enabled
Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте
Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled(). This method will be removed in 11.0.0.Whether PayPal Buttons is enabled.
Метод класса: WC_Gateway_Paypal_Buttons{}
Хуков нет.
Возвращает
bool.
Использование
$WC_Gateway_Paypal_Buttons = new WC_Gateway_Paypal_Buttons(); $WC_Gateway_Paypal_Buttons->is_enabled();
Список изменений
| Устарела с 10.5.0 | Use Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled() instead. This method will be removed in 11.0.0. |
Код WC_Gateway_Paypal_Buttons::is_enabled() WC Gateway Paypal Buttons::is enabled WC 11.2.2
public function is_enabled() {
wc_deprecated_function(
__METHOD__,
'10.5.0',
'Use Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled() instead.'
);
return $this->buttons->is_enabled();
}