woocommerce_locate_template хук-фильтр . WC 1.0
Return what we found.
Использование
add_filter( 'woocommerce_locate_template', 'filter_function_name_8104', 10, 3 ); function filter_function_name_8104( $template, $template_name, $template_path ){ // filter... return $template; }
- $template
- -
- $template_name
- -
- $template_path
- -
Где вызывается хук
woocommerce_locate_template
woocommerce/includes/wc-core-functions.php 420
return apply_filters( 'woocommerce_locate_template', $template, $template_name, $template_path );