woocommerce_template_directory filter-hookWC 1.0

Get the template file in the current theme.

Usage

add_filter( 'woocommerce_template_directory', 'wp_kama_woocommerce_template_directory_filter' );

/**
 * Function for `woocommerce_template_directory` filter-hook.
 * 
 * @param  $template 
 *
 * @return 
 */
function wp_kama_woocommerce_template_directory_filter( $template ){

	// filter...
	return $template;
}
$template
-

Where the hook is called

WC_Email::get_theme_template_file()
woocommerce_template_directory
WC_Email::admin_options()
woocommerce_template_directory
woocommerce/includes/emails/class-wc-email.php 866
return get_stylesheet_directory() . '/' . apply_filters( 'woocommerce_template_directory', 'woocommerce', $template ) . '/' . $template;
woocommerce/includes/emails/class-wc-email.php 1024
$template_dir  = apply_filters( 'woocommerce_template_directory', 'woocommerce', $template );

Where the hook is used in WooCommerce

Usage not found.