function register_column_headers($screen, $columns) {}

Register column headers for a particular screen. The header names will be listed in the Screen Options.


  • string $screen: The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
  • array $columns: An array of columns with column IDs as the keys and translated column names as the values

Source code

function register_column_headers($screen, $columns) {

	global $_wp_column_headers;

	if ( is_string($screen) )

		$screen = convert_to_screen($screen);

	if ( !isset($_wp_column_headers) )

		$_wp_column_headers = array();

	$_wp_column_headers[$screen->id] = $columns;



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 )

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: