function get_column_headers( $screen ) {}

Get the column headers for a screen


  • string|object $screen: The screen you want the headers for

Return values

returns:Containing the headers in the format id => UI String

Defined filters

  • manage_$screen->id_columns
    apply_filters( 'manage_' . $screen->id . '_columns', array()

Source code

function get_column_headers( $screen ) {

	if ( is_string( $screen ) )

		$screen = convert_to_screen( $screen );

	global $_wp_column_headers;

	if ( !isset( $_wp_column_headers[ $screen->id ] ) ) {

		$_wp_column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() );


	return $_wp_column_headers[ $screen->id ];



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: