Docs: Switch more docs over to typed array notation, plus some fixes.
See #48303, #41756 Built from https://develop.svn.wordpress.org/trunk@46596 git-svn-id: http://core.svn.wordpress.org/trunk@46393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -66,11 +66,13 @@ function _get_list_table( $class, $args = array() ) {
|
||||
/**
|
||||
* Register column headers for a particular screen.
|
||||
*
|
||||
* @see get_column_headers(), print_column_headers(), get_hidden_columns()
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
|
||||
* @param array $columns An array of columns with column IDs as the keys and translated column names as the values
|
||||
* @see get_column_headers(), print_column_headers(), get_hidden_columns()
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the
|
||||
* add_*_page() functions.
|
||||
* @param string[] $columns An array of columns with column IDs as the keys and translated column names as the values.
|
||||
*/
|
||||
function register_column_headers( $screen, $columns ) {
|
||||
new _WP_List_Table_Compat( $screen, $columns );
|
||||
|
||||
Reference in New Issue
Block a user