WC_Email_Customer_Completed_Order::init_form_fields PHP Method

init_form_fields() public method

Initialise settings form fields.
public init_form_fields ( )
        public function init_form_fields()
        {
            $this->form_fields = array('enabled' => array('title' => __('Enable/Disable', 'woocommerce'), 'type' => 'checkbox', 'label' => __('Enable this email notification', 'woocommerce'), 'default' => 'yes'), 'subject' => array('title' => __('Subject', 'woocommerce'), 'type' => 'text', 'description' => sprintf(__('Defaults to %s', 'woocommerce'), '<code>' . $this->subject . '</code>'), 'placeholder' => '', 'default' => '', 'desc_tip' => true), 'heading' => array('title' => __('Email heading', 'woocommerce'), 'type' => 'text', 'description' => sprintf(__('Defaults to %s', 'woocommerce'), '<code>' . $this->heading . '</code>'), 'placeholder' => '', 'default' => '', 'desc_tip' => true), 'subject_downloadable' => array('title' => __('Subject (downloadable)', 'woocommerce'), 'type' => 'text', 'description' => sprintf(__('Defaults to %s', 'woocommerce'), '<code>' . $this->subject_downloadable . '</code>'), 'placeholder' => '', 'default' => '', 'desc_tip' => true), 'heading_downloadable' => array('title' => __('Email heading (downloadable)', 'woocommerce'), 'type' => 'text', 'description' => sprintf(__('Defaults to %s', 'woocommerce'), '<code>' . $this->heading_downloadable . '</code>'), 'placeholder' => '', 'default' => '', 'desc_tip' => true), 'email_type' => array('title' => __('Email type', 'woocommerce'), 'type' => 'select', 'description' => __('Choose which format of email to send.', 'woocommerce'), 'default' => 'html', 'class' => 'email_type wc-enhanced-select', 'options' => $this->get_email_type_options(), 'desc_tip' => true));
        }