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 |
---|---|
34 | $stylesheet_uri = "$stylesheet_dir_uri/$locale.css"; |
35 | elseif ( !empty($wp_locale->text_direction) && file_exists("$dir/{$wp_locale->text_direction}.css") ) |
36 | $stylesheet_uri = "$stylesheet_dir_uri/{$wp_locale->text_direction}.css"; |
37 | else |
38 | $stylesheet_uri = ''; |
39 | return apply_filters('locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); |
40 | } |
41 |
|
42 | function get_template() { |
43 | return apply_filters('template', get_option('template')); |
44 | } |
45 |
|
46 | function get_template_directory() { |
47 | $template = get_template(); |
48 | $template_dir = get_theme_root() . "/$template"; |
49 | return apply_filters('template_directory', $template_dir, $template); |
50 | } |
51 |
|
52 | function get_template_directory_uri() { |