W3cubDocs

/WordPress

register_column_headers( string $screen, array $columns )

Register column headers for a particular screen.

Description

See also

Parameters

$screen

(string) (Required) The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.

$columns

(array) (Required) An array of columns with column IDs as the keys and translated column names as the values

Source

File: wp-admin/includes/list-table.php

function register_column_headers( $screen, $columns ) {
	new _WP_List_Table_Compat( $screen, $columns );
}

Changelog

Version Description
2.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/register_column_headers