W3cubDocs

/WordPress

print_column_headers( string|WP_Screen $screen, bool $with_id = true )

Prints column headers for a particular screen.

Parameters

$screenstring|WP_Screenrequired
The screen hook name or screen object.
$with_idbooloptional
Whether to set the ID attribute or not.

Default:true

Source

function print_column_headers( $screen, $with_id = true ) {
	$wp_list_table = new _WP_List_Table_Compat( $screen );

	$wp_list_table->print_column_headers( $with_id );
}

Changelog

Version Description
2.7.0 Introduced.

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