WordPress at Your Fingertips
function is not described

WC_Payment_Gateway_CC::field_name() public WC 2.6.0

Output field name HTML

Gateways which support tokenization do not require names - we don't want the data to post to the server.

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

No Hooks.

Return

String.

Usage

$WC_Payment_Gateway_CC = new WC_Payment_Gateway_CC();
$WC_Payment_Gateway_CC->field_name( $name );
$name(string) (required)
Field name.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Gateway_CC::field_name() WC 5.6.0

public function field_name( $name ) {
	return $this->supports( 'tokenization' ) ? '' : ' name="' . esc_attr( $this->id . '-' . $name ) . '" ';
}