Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_category

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
596
597 <?php if ( 'category' === $taxonomy ) : ?>
598 <div class="form-wrap edit-term-notes">
599 <p>
600      <?php
601      printf(
602           /* translators: %s: Default category. */
603           __( 'Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the default category %s. The default category cannot be deleted.' ),
604           /** This filter is documented in wp-includes/category-template.php */
605           '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'
606      );
607      ?>
608 </p>
609      <?php if ( current_user_can( 'import' ) ) : ?>
610      <p>
611           <?php
612           printf(
613                /* translators: %s: URL to Categories to Tags Converter tool. */
614                __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ),