WP_MS_Sites_List_Table::get_columns(): string[]

In this article

Return

string[] Array of column titles keyed by their column name.

Source

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 );
}

Hooks

apply_filters( ‘wpmu_blogs_columns’, string[] $sites_columns )

Filters the displayed site columns in Sites list table.

User Contributed Notes

You must log in before being able to contribute a note or feedback.