Automattic\WooCommerce\Internal\Admin\WCPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields()publicWC 1.0

Initialise Gateway Settings Form Fields.

Method of the class: WCPaymentGatewayPreInstallWCPayPromotion{}

No Hooks.

Return

null. Nothing.

Usage

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

WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields() code WC 7.1.1

public function init_form_fields() {
	$this->form_fields = array(
		'is_dismissed' => array(
			'title'   => __( 'Dismiss', 'woocommerce' ),
			'type'    => 'checkbox',
			'label'   => __( 'Dismiss the gateway', 'woocommerce' ),
			'default' => 'no',
		),
	);
}