Automattic\WooCommerce\Internal\Admin\WCPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields()publicWC 1.0

Initialise Gateway Settings Form Fields.

{} Это метод класса: WCPaymentGatewayPreInstallWCPayPromotion{}

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields() WC 7.1.0

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