woocommerce_template_overrides_scan_paths
Filter the paths to scan for template overrides.
Usage
add_filter( 'woocommerce_template_overrides_scan_paths', 'wp_kama_woocommerce_template_overrides_scan_paths_filter' );
/**
* Function for `woocommerce_template_overrides_scan_paths` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_woocommerce_template_overrides_scan_paths_filter( $array ){
// filter...
return $array;
}
- $array
- -
Changelog
| Since 2.3.0 | Introduced. |
Where the hook is called
woocommerce_template_overrides_scan_paths
woocommerce/includes/class-wc-tracker.php 1101
$template_paths = (array) apply_filters( 'woocommerce_template_overrides_scan_paths', array( 'WooCommerce' => WC()->plugin_path() . '/templates/' ) );