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

February 12, 2011 


No comments yet... Be the first to leave a reply!