WC_Email::get_template
Get template.
Method of the class: WC_Email{}
No Hooks.
Returns
String.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_template( $type );
- $type(string) (required)
- Template type. Can be either
'template_html','template_plain'or'template_block'.
WC_Email::get_template() WC Email::get template code WC 10.8.1
public function get_template( $type ) {
$type = basename( $type );
if ( 'template_html' === $type ) {
return $this->template_html;
} elseif ( 'template_plain' === $type ) {
return $this->template_plain;
} elseif ( 'template_block' === $type ) {
return $this->template_block;
}
return '';
}