WC_Email_Customer_Invoice::get_default_heading()
Get email heading.
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_heading( $paid );
- $paid(true|false)
- Whether the order has been paid or not.
Default: false
Changelog
Since 3.1.0 | Introduced. |
WC_Email_Customer_Invoice::get_default_heading() WC Email Customer Invoice::get default heading code WC 8.7.0
public function get_default_heading( $paid = false ) { if ( $paid ) { return __( 'Invoice for order #{order_number}', 'woocommerce' ); } else { return __( 'Your invoice for order #{order_number}', 'woocommerce' ); } }