WC_Email_Customer_Invoice::get_heading PHP Метод

get_heading() публичный Метод

Get email heading.
public get_heading ( ) : string
Результат string
        public function get_heading()
        {
            if ($this->object->has_status(array('completed', 'processing'))) {
                return apply_filters('woocommerce_email_heading_customer_invoice_paid', $this->format_string($this->heading_paid), $this->object);
            } else {
                return apply_filters('woocommerce_email_heading_customer_invoice', $this->format_string($this->heading), $this->object);
            }
        }

Usage Example

 /**
  * get_heading function.
  *
  * @access public
  * @return string
  */
 function get_heading()
 {
     return apply_filters('woocommerce_email_heading_customer_renewal_order', parent::get_heading(), $this->object);
 }