print_column_headers() WordPress Function

The print_column_headers() function in WordPress is used to print the column headers for a particular screen. This function is used internally by WordPress and should not be called directly.

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

Prints column headers for a particular screen.


Parameters

$screen

(string|WP_Screen)(Required)The screen hook name or screen object.

$with_id

(bool)(Optional)Whether to set the ID attribute or not.

Default value: true


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.