Automattic\WooCommerce\Internal\Admin\WCPayPromotion

WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields()publicWC 1.0

Initialise Gateway Settings Form Fields.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields() WC 8.7.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',
		),
	);
}