WC_Email_Customer_Fulfillment_Created::get_default_headingpublicWC 3.1.0

Get email heading.

Method of the class: WC_Email_Customer_Fulfillment_Created{}

No Hooks.

Returns

String.

Usage

$WC_Email_Customer_Fulfillment_Created = new WC_Email_Customer_Fulfillment_Created();
$WC_Email_Customer_Fulfillment_Created->get_default_heading();

Changelog

Since 3.1.0 Introduced.
Since 10.7.0 Added plural form for multi-item fulfillments.

WC_Email_Customer_Fulfillment_Created::get_default_heading() code WC 10.7.0

public function get_default_heading() {
	if ( $this->get_fulfillment_item_count() > 1 ) {
		return __( 'Your items are on the way!', 'woocommerce' );
	}
	return __( 'Your item is on the way!', 'woocommerce' );
}