Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: tag_rows

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
326
327      // convert it to table rows
328      $out = '';
329      $class = '';
330      $count = 0;
331      foreach( $tags as $tag )
332           $out .= _tag_row( $tag, ++$count % 2 ? ' class="alternate"' : '' );
333
334      // filter and send to screen
335      $out = apply_filters('tag_rows', $out);
336      echo $out;
337      return $count;
338 }
339
340 // define the columns to display, the syntax is 'internal name' => 'display name'
341 function wp_manage_posts_columns() {
342      $posts_columns = array();
343      $posts_columns['cb'] = '<input type="checkbox" />';
344      if ( 'draft' === $_GET['post_status'] )