WC_Email_Customer_Invoice::get_heading
Get email heading.
Method of the class: WC_Email_Customer_Invoice{}
Hooks from the method
Returns
String.
Usage
$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice(); $WC_Email_Customer_Invoice->get_heading();
WC_Email_Customer_Invoice::get_heading() WC Email Customer Invoice::get heading code WC 10.7.0
public function get_heading() {
if ( $this->object->has_status( wc_get_is_paid_statuses() ) ) {
$heading = $this->get_option( 'heading_paid', $this->get_default_heading( true ) );
return apply_filters( 'woocommerce_email_heading_customer_invoice_paid', $this->format_string( $heading ), $this->object, $this );
}
$heading = $this->get_option( 'heading', $this->get_default_heading() );
return apply_filters( 'woocommerce_email_heading_customer_invoice', $this->format_string( $heading ), $this->object, $this );
}