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
1054           if ( $args['use_desc_for_title'] && ! empty( $category->description ) ) {
1055                /**
1056                 * Filter the category description for display.
1057                 *
1058                 * @since 1.2.0
1059                 *
1060                 * @param string $description Category description.
1061                 * @param object $category    Category object.
1062                 */
1063                $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
1064           }
1065
1066           $link .= '>';
1067           $link .= $cat_name . '</a>';
1068
1069           if ( ! empty( $args['feed_image'] ) || ! empty( $args['feed'] ) ) {
1070                $link .= ' ';
1071
1072                if ( empty( $args['feed_image'] ) ) {