install_themes_nonmenu_tabs
云策文档标注
概述
本文档介绍 WordPress 中用于过滤安装主题屏幕上非菜单项标签的 Hook。该 Hook 允许开发者自定义或移除那些没有对应菜单项的标签。
关键要点
- Hook 名称:install_themes_nonmenu_tabs
- 参数:$nonmenu_tabs(字符串数组),表示安装主题屏幕上没有菜单项的标签列表
- 用途:通过 apply_filters 调用,开发者可以修改这些标签,例如添加、移除或重命名
- 相关函数:WP_Theme_Install_List_Table::prepare_items() 使用此 Hook
- 引入版本:WordPress 2.8.0
原文内容
Filters tabs not associated with a menu item on the Install Themes screen.
Parameters
$nonmenu_tabsstring[]-
The tabs that don’t have a menu item on the Install Themes screen.
Source
$nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |