WC_Email::get_template( string $type )
Get template.
Description Description
Parameters Parameters
- $type
-
(Required) Template type. Can be either 'template_html' or 'template_plain'.
Return Return
(string)
Source Source
File: includes/emails/class-wc-email.php
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 ''; }