WP_MS_Sites_List_Table::get_columns() –

You appear to be a bot. Output may be restricted

Description

Usage

$array = WP_MS_Sites_List_Table::get_columns();

Parameters

Returns

array

Source

File name: wordpress/wp-admin/includes/class-wp-ms-sites-list-table.php
Lines:

1 to 23 of 23
  public function get_columns() {
    $sites_columns = array(
      'cb'          => '<input type="checkbox" />',
      'blogname'    => __( 'URL' ),
      'lastupdated' => __( 'Last Updated' ),
      'registered'  => _x( 'Registered', 'site' ),
      'users'       => __( 'Users' ),
    );

    if ( has_filter( 'wpmublogsaction' ) ) {
      $sites_columns['plugins'] = __( 'Actions' );
    }

    
/**
 * Filters the displayed site columns in Sites list table.
 *
 * @since MU (3.0.0)
 *
 * @param string[] $sites_columns An array of displayed site columns. Default 'cb',
 *                               'blogname', 'lastupdated', 'registered', 'users'.
 */
    return apply_filters( 'wpmu_blogs_columns', $sites_columns );
  }
 

 View on GitHub View on Trac