WordPress at Your Fingertips
function is not described

WC_Email::get_template() public WC 1.0

Get template.

{} It's a 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'.

Code of WC_Email::get_template() WC 5.9.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 '';
}