WC_Payment_Gateway::has_fields()publicWC 1.0

Check if the gateway has fields on the checkout.

Method of the class: WC_Payment_Gateway{}

No Hooks.

Return

true|false.

Usage

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

WC_Payment_Gateway::has_fields() code WC 8.6.1

public function has_fields() {
	return (bool) $this->has_fields;
}