Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: category_description

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
159 function the_category($separator = '', $parents='') {
160      echo get_the_category_list($separator, $parents);
161 }
162
163 function category_description($category = 0) {
164      global $cat;
165      if ( !$category )
166           $category = $cat;
167      $category = & get_category($category);
168      return apply_filters('category_description', $category->category_description, $category->cat_ID);
169 }
170
171 function wp_dropdown_categories($args = '') {
172      if ( is_array($args) )
173           $r = &$args;
174      else
175           parse_str($args, $r);
176
177      $defaults = array('show_option_all' => '', 'show_option_none' => '', 'orderby' => 'ID',