register_column_headers()
Register column headers for a particular screen.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
register_column_headers( $screen, $columns );
- $screen(строка) (обязательный)
- The handle for the screen to register column headers for. This is usually the hook name returned by the add_*_page() functions.
- $columns(string[]) (обязательный)
- An array of columns with column IDs as the keys and translated column names as the values.
Заметки
Список изменений
С версии 2.7.0 | Введена. |
Код register_column_headers() register column headers WP 6.7.1
function register_column_headers( $screen, $columns ) { new _WP_List_Table_Compat( $screen, $columns ); }