Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: category_template

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
595  * exist.
596  *
597  * @since 1.5.0
598  * @uses apply_filters() Calls 'category_template' on file path of category template.
599  *
600  * @return string
601  */
602 function get_category_template() {
603      $template = locate_template(array("category-" . absint( get_query_var('cat') ) . '.php', 'category.php'));
604      return apply_filters('category_template', $template);
605 }
606
607 /**
608  * Retrieve path of tag template in current or parent template.
609  *
610  * Works by retrieving the current tag name, for example 'tag-wordpress.php' and will
611  * fallback to tag.php template, if the name tag file doesn't exist.
612  *
613  * @since 2.3.0