register_column_headers()WP 2.7.0

Register column headers for a particular screen.

No Hooks.

Return

null. Nothing.

Usage

register_column_headers( $screen, $columns );
$screen(string) (required)
The handle for the screen to register column headers for. This is usually the hook name returned by the add_*_page() functions.
$columns(string[]) (required)
An array of columns with column IDs as the keys and translated column names as the values.

Notes

Changelog

Since 2.7.0 Introduced.

register_column_headers() code WP 6.1.1

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