WC_Payment_Gateway::needs_setup()
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.
Method of the class: WC_Payment_Gateway{}
No Hooks.
Return
true|false
.
Usage
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->needs_setup();
Changelog
Since 3.4.0 | Introduced. |
WC_Payment_Gateway::needs_setup() WC Payment Gateway::needs setup code WC 9.7.1
public function needs_setup() { return false; }