register_column_headers() - WordPress 函数参考中文文档

返回介绍

register_column_headers()

发布于 2017-09-11 字数1258 浏览 831 评论 0

register_column_headers( string $screen,  array $columns )

Register column headers for a particular screen.


描述


参数

$screen

(string)
(Required)
The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.

$columns

(array)
(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 描述
2.7.0 Introduced.

相关函数

Uses

  • wp-admin/includes/class-wp-list-table-compat.php:
    _WP_List_Table_Compat::__construct()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!