WC_Email_Customer_Refunded_Order::get_headingpublicWC 1.0

Get email heading.

Method of the class: WC_Email_Customer_Refunded_Order{}

Returns

String.

Usage

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

WC_Email_Customer_Refunded_Order::get_heading() code WC 10.8.1

public function get_heading() {
	if ( $this->partial_refund ) {
		$heading = $this->get_option( 'heading_partial', $this->get_default_heading( true ) );
	} else {
		$heading = $this->get_option( 'heading_full', $this->get_default_heading() );
	}
	/**
	 * Filter the email heading for customer refunded order.
	 *
	 * @param string $heading The email heading.
	 * @param WC_Order $order Order object.
	 * @param WC_Email_Customer_Refunded_Order $email Email object.
	 * @since 3.7.0
	 */
	return apply_filters( 'woocommerce_email_heading_customer_refunded_order', $this->format_string( $heading ), $this->object, $this );
}