WC_Email_Customer_Invoice::get_default_heading()
Get email heading.
Метод класса: WC_Email_Customer_Invoice{}
Хуков нет.
Возвращает
Строку
.
Использование
$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.
По умолчанию: false
Список изменений
С версии 3.1.0 | Введена. |
Код WC_Email_Customer_Invoice::get_default_heading() WC Email Customer Invoice::get default heading 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' ); } }