WC_Email_Customer_Invoice::get_subject()publicWC 1.0

Get email subject.

{} Это метод класса: WC_Email_Customer_Invoice{}

Возвращает

Строку.

Использование

$WC_Email_Customer_Invoice = new WC_Email_Customer_Invoice();
$WC_Email_Customer_Invoice->get_subject();

Код WC_Email_Customer_Invoice::get_subject() WC 6.9.1

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 );
}