Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Classes / WC_Email_Customer_Invoice / WC_Email_Customer_Invoice::get_subject()

WC_Email_Customer_Invoice::get_subject()

Get email subject.

Contents

  • Description
    • Return
    • Source
  • Related
    • Uses
    • Used By
  • User Contributed Notes

Description #Description


Return #Return

(string)


Top ↑

Source #Source

File: includes/emails/class-wc-email-customer-invoice.php

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

Expand full source code Collapse full source code


Top ↑

Related #Related

Top ↑

Uses #Uses

Uses
Uses Description
includes/emails/class-wc-email-customer-invoice.php: WC_Email_Customer_Invoice::get_default_subject()

Get email subject.

Top ↑

Used By #Used By

Used By
Used By Description
includes/emails/class-wc-email-customer-invoice.php: WC_Email_Customer_Invoice::trigger()

Trigger the sending of this email.


Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress