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
112           if ( $args['use_desc_for_title'] && ! empty( $category->description ) ) {
113                /**
114                 * Filter the category description for display.
115                 *
116                 * @since 1.2.0
117                 *
118                 * @param string $description Category description.
119                 * @param object $category    Category object.
120                 */
121                $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
122           }
123
124           $link .= '>';
125           $link .= $cat_name . '</a>';
126
127           if ( ! empty( $args['feed_image'] ) || ! empty( $args['feed'] ) ) {
128                $link .= ' ';
129
130                if ( empty( $args['feed_image'] ) ) {