/** * get_heading function. * * @access public * @return string */ function get_heading() { return apply_filters('woocommerce_email_heading_customer_renewal_order', parent::get_heading(), $this->object); }
/** * Initialise Settings Form Fields, but add an enable/disable field * to this email as WC doesn't include that for customer Invoices. * * @access public * @return void */ function init_form_fields() { parent::init_form_fields(); $this->form_fields = array_merge(array('enabled' => array('title' => __('Enable/Disable', 'woocommerce'), 'type' => 'checkbox', 'label' => __('Enable this email notification', 'woocommerce'), 'default' => 'yes')), $this->form_fields); }
/** * Initialise Settings Form Fields, but add an enable/disable field * to this email as WC doesn't include that for customer Invoices. * * @access public * @return void */ function init_form_fields() { parent::init_form_fields(); if (isset($this->form_fields['heading_paid'])) { unset($this->form_fields['heading_paid']); } if (isset($this->form_fields['subject_paid'])) { unset($this->form_fields['subject_paid']); } $this->form_fields = array_merge(array('enabled' => array('title' => _x('Enable/Disable', 'an email notification', 'woocommerce-subscriptions'), 'type' => 'checkbox', 'label' => __('Enable this email notification', 'woocommerce-subscriptions'), 'default' => 'yes')), $this->form_fields); }