WC_Email::get_headingpublicWC 1.0

Get email heading.

Method of the class: WC_Email{}

Hooks from the method

Returns

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_heading();

WC_Email::get_heading() code WC 10.8.1

public function get_heading() {
	/**
	 * Provides an opportunity to inspect and modify heading for the email.
	 *
	 * @since 2.0.0
	 *
	 * @param string      $heading Heading to be added to the email.
	 * @param object|bool $object  The object (ie, product or order) this email relates to, if any.
	 * @param WC_Email    $email   WC_Email instance managing the email.
	 */
	return apply_filters( 'woocommerce_email_heading_' . $this->id, $this->format_string( $this->get_option_or_transient( 'heading', $this->get_default_heading() ) ), $this->object, $this );
}