Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: theme_root_uri

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
495  * Retrieve URI for themes directory.
496  *
497  * Does not have trailing slash.
498  *
499  * @since 1.5.0
500  *
501  * @return string Themes URI.
502  */
503 function get_theme_root_uri() {
504      return apply_filters('theme_root_uri', content_url('themes'), get_option('siteurl'));
505 }
506
507 /**
508  * Retrieve path to file without the use of extension.
509  *
510  * Used to quickly retrieve the path of file without including the file
511  * extension. It will also check the parent template, if the file exists, with
512  * the use of {@link locate_template()}. Allows for more generic file location
513  * without the use of the other get_*_template() functions.