函数原型
register_column_headers( string $screen, string[] $columns )
函数描述
Register column headers for a particular screen.
是否弃用
未弃用
函数参数
-
$screen
string
Required - The handle for the screen to register column headers for. This is usually the hook name returned by the
add_*_page()functions. -
$columns
string[]
Required - An array of columns with column IDs as the keys and translated column names as the values.
函数返回值
无
函数位置
File: wp-admin/includes/list-table.php.
函数源码
function register_column_headers( $screen, $columns ) {
new _WP_List_Table_Compat( $screen, $columns );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |

