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.8.1

apply_filters('woocommerce_template_overrides_scan_paths') is found 1 times:

  • /includes/class-wc-tracker.php line 1025
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    * Filter the paths to scan for template overrides.
     *
     * @since 2.3.0
     */
    $template_paths = (array) 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 );