site_health_navigation_tabs
云策文档标注
概述
site_health_navigation_tabs 过滤器用于在站点健康屏幕的导航栏中添加自定义标签页,基于标签slug和标签名。提供的标签名也会用作站点标题的一部分。
关键要点
- 过滤器名称:site_health_navigation_tabs
- 参数:$tabs,一个关联数组,键为标签slug,值为标签名
- 用途:允许开发者扩展站点健康屏幕的导航标签
- 引入版本:WordPress 5.8.0
代码示例
$tabs = apply_filters( 'site_health_navigation_tabs', $tabs );
原文内容
Filters the extra tabs for the Site Health navigation bar.
Description
Add a custom page to the Site Health screen, based on a tab slug and label.
The label you provide will also be used as part of the site title.
Parameters
$tabsstring[]-
An associative array of tab labels keyed by their slug.
Source
$tabs = apply_filters( 'site_health_navigation_tabs', $tabs );
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |