Automattic\WooCommerce\Internal\Admin\WCPayPromotion
WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields
Initialise Gateway Settings Form Fields.
Метод класса: WCPaymentGatewayPreInstallWCPayPromotion{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WCPaymentGatewayPreInstallWCPayPromotion = new WCPaymentGatewayPreInstallWCPayPromotion(); $WCPaymentGatewayPreInstallWCPayPromotion->init_form_fields();
Код WCPaymentGatewayPreInstallWCPayPromotion::init_form_fields() WCPaymentGatewayPreInstallWCPayPromotion::init form fields WC 10.3.6
public function init_form_fields() {
$this->form_fields = array(
'is_dismissed' => array(
'title' => __( 'Dismiss', 'woocommerce' ),
'type' => 'checkbox',
'label' => __( 'Dismiss the gateway', 'woocommerce' ),
'default' => 'no',
),
);
}