WC_Gateway_Cheque::init_form_fields │ public │ WC 1.0

Initialise Gateway Settings Form Fields.

Method of the class: WC_Gateway_Cheque{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Gateway_Cheque = new WC_Gateway_Cheque();
$WC_Gateway_Cheque->init_form_fields();

WC_Gateway_Cheque::init_form_fields() code WC 11.3.0

public function init_form_fields() {

	$this->form_fields = array_merge(
		array(
			'enabled'      => array(
				'title'   => __( 'Enable/Disable', 'woocommerce' ),
				'type'    => 'checkbox',
				'label'   => __( 'Enable check payments', 'woocommerce' ),
				'default' => 'no',
			),
			'title'        => array(
				'title'       => __( 'Title', 'woocommerce' ),
				'type'        => 'safe_text',
				'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce' ),
				'default'     => _x( 'Check payments', 'Check payment method', 'woocommerce' ),
				'desc_tip'    => true,
			),
			'description'  => array(
				'title'       => __( 'Description', 'woocommerce' ),
				'type'        => 'textarea',
				'description' => __( 'Payment method description that the customer will see on your checkout.', 'woocommerce' ),
				'default'     => __( 'Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.', 'woocommerce' ),
				'desc_tip'    => true,
			),
			'instructions' => array(
				'title'       => __( 'Instructions', 'woocommerce' ),
				'type'        => 'textarea',
				'description' => __( 'Instructions that will be added to the thank you page and emails.', 'woocommerce' ),
				'default'     => '',
				'desc_tip'    => true,
			),
		),
		$this->get_shipping_method_restrictions_form_fields()
	);
}