WordPress at Your Fingertips
function is not described

WC_Email_Customer_Invoice::get_default_subject() public WC 3.1.0

Get email subject.

{} It's a method of the class: WC_Email_Customer_Invoice{}

No Hooks.

Return

String.

Usage

$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice();
$WC_Email_Customer_Invoice->get_default_subject( $paid );
$paid(true|false)
Whether the order has been paid or not.
Default: false

Changelog

Since 3.1.0 Introduced.

Code of WC_Email_Customer_Invoice::get_default_subject() WC 5.9.0

public function get_default_subject( $paid = false ) {
	if ( $paid ) {
		return __( 'Invoice for order #{order_number} on {site_title}', 'woocommerce' );
	} else {
		return __( 'Your latest {site_title} invoice', 'woocommerce' );
	}
}