Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_pages_columns

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      elseif ( 'pending' === $_GET['post_status'] )
327           $posts_columns['modified'] = __('Submitted');
328      else
329           $posts_columns['date'] = __('Date');
330      $posts_columns['title'] = __('Title');
331      $posts_columns['author'] = __('Author');
332      if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
333           $posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.png" /></div>';
334      $posts_columns['status'] = __('Status');
335      $posts_columns = apply_filters('manage_pages_columns', $posts_columns);
336
337      return $posts_columns;
338 }
339
340 /*
341  * display one row if the page doesn't have any children
342  * otherwise, display the row and its children in subsequent rows
343  */
344 function display_page_row( $page, &$children_pages, $level = 0 ) {