WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 516 | * Retrieve URI for themes directory. |
| 517 | * |
| 518 | * Does not have trailing slash. |
| 519 | * |
| 520 | * @since 1.5.0 |
| 521 | * |
| 522 | * @return string Themes URI. |
| 523 | */ |
| 524 | function get_theme_root_uri() { |
| 525 | return apply_filters('theme_root_uri', content_url('themes'), get_option('siteurl')); |
| 526 | } |
| 527 | |
| 528 | /** |
| 529 | * Retrieve path to file without the use of extension. |
| 530 | * |
| 531 | * Used to quickly retrieve the path of file without including the file |
| 532 | * extension. It will also check the parent template, if the file exists, with |
| 533 | * the use of {@link locate_template()}. Allows for more generic file location |
| 534 | * without the use of the other get_*_template() functions. |