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

WC_Email_Customer_Invoice::get_default_heading( bool $paid = false )

Get email heading.

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Used By
  • User Contributed Notes

Description #Description


Parameters #Parameters

$paid

(Optional) Whether the order has been paid or not.

Default value: false


Top ↑

Return #Return

(string)


Top ↑

Source #Source

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

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

Expand full source code Collapse full source code


Top ↑

Changelog #Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

Related #Related

Top ↑

Used By #Used By

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

Get email heading.

includes/emails/class-wc-email-customer-invoice.php: WC_Email_Customer_Invoice::init_form_fields()

Initialise settings form fields.


Top ↑

User Contributed Notes #User Contributed Notes

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

Proudly powered by WordPress