woocommerce_template_overrides_scan_paths filter-hookWC 2.3.0

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

WC_Tracker::get_all_template_overrides()
woocommerce_template_overrides_scan_paths
woocommerce/includes/class-wc-tracker.php 983
$template_paths = apply_filters( 'woocommerce_template_overrides_scan_paths', array( 'WooCommerce' => WC()->plugin_path() . '/templates/' ) );

Where the hook is used in WooCommerce

Usage not found.