Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: template_directory

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
330      /**
331       * Filters the current theme directory path.
332       *
333       * @since 1.5.0
334       *
335       * @param string $template_dir The path of the current theme directory.
336       * @param string $template     Directory name of the current theme.
337       * @param string $theme_root   Absolute path to the themes directory.
338       */
339      return apply_filters( 'template_directory', $template_dir, $template, $theme_root );
340 }
341
342 /**
343  * Retrieves template directory URI for current theme.
344  *
345  * @since 1.5.0
346  *
347  * @return string URI to current theme's template directory.
348  */