WC_Email::get_template()publicWC 1.0

Get template.

Method of the class: WC_Email{}

No Hooks.

Return

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_template( $type );
$type(string) (required)
Template type. Can be either 'template_html' or 'template_plain'.

WC_Email::get_template() code WC 8.7.0

public function get_template( $type ) {
	$type = basename( $type );

	if ( 'template_html' === $type ) {
		return $this->template_html;
	} elseif ( 'template_plain' === $type ) {
		return $this->template_plain;
	}
	return '';
}