register_column_headers()
最后更新于:2021-11-27 21:32:35
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.
源文件
文件: gc-admin/includes/list-table.php
function register_column_headers( $screen, $columns ) {
new _GC_List_Table_Compat( $screen, $columns );
}