WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::has_fields() public WC 1.0

Check if the gateway has fields on the checkout.

{} It's a 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();

Code of WC_Payment_Gateway::has_fields() WC 5.5.2

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