woocommerce_locate_template хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_locate_template', 'wp_kama_woocommerce_locate_template_filter', 10, 3 );

/**
 * Function for `woocommerce_locate_template` filter-hook.
 * 
 * @param  $template      
 * @param  $template_name 
 * @param  $template_path 
 *
 * @return 
 */
function wp_kama_woocommerce_locate_template_filter( $template, $template_name, $template_path ){

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

Где вызывается хук

wc_locate_template()
woocommerce_locate_template
woocommerce/includes/wc-core-functions.php 420
return apply_filters( 'woocommerce_locate_template', $template, $template_name, $template_path );

Где используется хук в WooCommerce

Использование не найдено.