WC_Email_Customer_Invoice::get_subject()
Get email subject.
Method of the class: WC_Email_Customer_Invoice{}
Hooks from the method
Return
String
.
Usage
$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice(); $WC_Email_Customer_Invoice->get_subject();
WC_Email_Customer_Invoice::get_subject() WC Email Customer Invoice::get subject code WC 8.7.0
public function get_subject() { if ( $this->object->has_status( array( 'completed', 'processing' ) ) ) { $subject = $this->get_option( 'subject_paid', $this->get_default_subject( true ) ); return apply_filters( 'woocommerce_email_subject_customer_invoice_paid', $this->format_string( $subject ), $this->object, $this ); } $subject = $this->get_option( 'subject', $this->get_default_subject() ); return apply_filters( 'woocommerce_email_subject_customer_invoice', $this->format_string( $subject ), $this->object, $this ); }