WC_Gateway_Paypal::needs_setup() public WC 3.4.0
Return whether or not this gateway still requires setup to function.
When this gateway is toggled on via AJAX, if this returns true a redirect will occur to the settings page instead.
{} Это метод класса: WC_Gateway_Paypal{}
Хуков нет.
Возвращает
true/false.
Использование
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->needs_setup();
Список изменений
С версии 3.4.0 | Введена. |
Код WC_Gateway_Paypal::needs_setup() WC Gateway Paypal::needs setup WC 5.0.0
public function needs_setup() {
return ! is_email( $this->email );
}