WC_Email::get_template()publicWC 1.0

Get template.

Метод класса: WC_Email{}

Хуков нет.

Возвращает

Строку.

Использование

$WC_Email = new WC_Email();
$WC_Email->get_template( $type );
$type(строка) (обязательный)
Template type. Can be either 'template_html' or 'template_plain'.

Код WC_Email::get_template() 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 '';
}