register_column_headers

Definition:
function register_column_headers($screen, $columns) {}

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

Parameters

  • 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;

}

2659

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:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google 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: