WC_Email_Customer_Invoice::get_heading()publicWC 1.0

Get email heading.

Method of the class: WC_Email_Customer_Invoice{}

Return

String.

Usage

$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice();
$WC_Email_Customer_Invoice->get_heading();

WC_Email_Customer_Invoice::get_heading() code WC 8.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 );
}