WC_Email::get_theme_template_file()
Get the template file in the current theme.
Method of the class: WC_Email{}
Hooks from the method
Return
String
.
Usage
$WC_Email = new WC_Email(); $WC_Email->get_theme_template_file( $template );
- $template(string) (required)
- Template name.
WC_Email::get_theme_template_file() WC Email::get theme template file code WC 9.7.1
public function get_theme_template_file( $template ) { return get_stylesheet_directory() . '/' . apply_filters( 'woocommerce_template_directory', 'woocommerce', $template ) . '/' . $template; }