theme_file_path

theme_file_path

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('theme_file_path') is found 3 times:

  • /wp-includes/class-wp-theme.php line 1626
    1622
    1623
    1624
    1625
    1626
    1627
    1628
    1629
    1630
    1631
    1632
            $path = $template_directory . '/' . $file;
        }
     
        /** This filter is documented in wp-includes/link-template.php */
        return apply_filters( 'theme_file_path', $path, $file );
    }
     
    /**
     * Determines the latest WordPress default theme that is installed.
     *
     * This hits the filesystem.
  • /wp-includes/global-styles-and-settings.php line 426
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
            $path = $template_directory . '/theme.json';
        }
     
        /** This filter is documented in wp-includes/link-template.php */
        $path = apply_filters( 'theme_file_path', $path, 'theme.json' );
     
        $theme_has_support[ $stylesheet ] = file_exists( $path );
     
        return $theme_has_support[ $stylesheet ];
    }
  • /wp-includes/link-template.php line 4681
    4677
    4678
    4679
    4680
    4681
    4682
    4683
    4684
    4685
    4686
    4687
         *
         * @param string $path The file path.
         * @param string $file The requested file to search for.
         */
        return apply_filters( 'theme_file_path', $path, $file );
    }
     
    /**
     * Retrieves the path of a file in the parent theme.
     *
     * @since 4.7.0