Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: manage_sites_custom_column

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
459      public function column_default( $blog, $column_name ) {
460           /**
461            * Fires for each registered custom column in the Sites list table.
462            *
463            * @since 3.1.0
464            *
465            * @param string $column_name The name of the column to display.
466            * @param int    $blog_id     The site ID.
467            */
468           do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
469      }
470
471      /**
472       * @global string $mode
473       */
474      public function display_rows() {
475           foreach ( $this->items as $blog ) {
476                $blog  = $blog->to_array();
477                $class = '';