WordPress at Your Fingertips
function is not described

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.

{} It's a method of the class: WC_Gateway_Paypal{}

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.4.0 Introduced.

Code of WC_Gateway_Paypal::needs_setup() WC 5.7.1

public function needs_setup() {
	return ! is_email( $this->email );
}