woocommerce_template_directory filter-hook . WC 1.0
Get the template file in the current theme.
Usage
add_filter( 'woocommerce_template_directory', 'filter_function_name_7588' ); function filter_function_name_7588( $template ){ // filter... return $template; }
- $template
- -
Where the hook is called
woocommerce_template_directory
woocommerce_template_directory
woocommerce/includes/emails/class-wc-email.php 802
return get_stylesheet_directory() . '/' . apply_filters( 'woocommerce_template_directory', 'woocommerce', $template ) . '/' . $template;
woocommerce/includes/emails/class-wc-email.php 960
$template_dir = apply_filters( 'woocommerce_template_directory', 'woocommerce', $template );