WC_Payment_Gateway::needs_setup()publicWC 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_Payment_Gateway{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->needs_setup();

Список изменений

С версии 3.4.0 Введена.

Код WC_Payment_Gateway::needs_setup() WC 8.7.0

public function needs_setup() {
	return false;
}