woocommerce_template_overrides_scan_paths

woocommerce_template_overrides_scan_paths

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_template_overrides_scan_paths') is found 1 times:

  • /includes/class-wc-tracker.php line 1014
    		 * Filter the paths to scan for template overrides.
    		 *
    		 * @since 2.3.0
    		 */
    		$template_paths = apply_filters( 'woocommerce_template_overrides_scan_paths', array( 'WooCommerce' => WC()->plugin_path() . '/templates/' ) );
    		$scanned_files  = array();
    
    		require_once WC()->plugin_path() . '/includes/admin/class-wc-admin-status.php';
    
    		foreach ( $template_paths as $plugin_name => $template_path ) {
    			$scanned_files[ $plugin_name ] = WC_Admin_Status::scan_template_files( $template_path );