woocommerce_template_path
Filter to adjust the base templates path.
Usage
add_filter( 'woocommerce_template_path', 'wp_kama_woocommerce_template_path_filter' );
/**
* Function for `woocommerce_template_path` filter-hook.
*
* @param $string
*
* @return
*/
function wp_kama_woocommerce_template_path_filter( $string ){
// filter...
return $string;
}
- $string
- -
Where the hook is called
woocommerce_template_path
woocommerce/includes/class-woocommerce.php 1067
return apply_filters( 'woocommerce_template_path', 'woocommerce/' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment