WC_Email_Customer_Invoice::get_subjectpublicWC 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 10.7.0

public function get_subject() {
	if ( $this->object->has_status( array( OrderStatus::COMPLETED, OrderStatus::PROCESSING ) ) ) {
		$subject = $this->get_option( 'subject_paid', $this->get_default_subject( true ) );

		if ( $this->block_email_editor_enabled ) {
			$subject = $this->personalizer->personalize_transactional_content( $subject, $this );
		}

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

	if ( $this->block_email_editor_enabled ) {
		$subject = $this->personalizer->personalize_transactional_content( $subject, $this );
	}

	return apply_filters( 'woocommerce_email_subject_customer_invoice', $this->format_string( $subject ), $this->object, $this );
}