dashboard_secondary_title
云策文档标注
概述
dashboard_secondary_title 是一个 WordPress 过滤器钩子,用于修改‘WordPress Events and News’仪表板小部件中次要链接的标题属性。它允许开发者自定义该链接的显示文本。
关键要点
- 这是一个过滤器钩子,用于过滤‘WordPress Events and News’仪表板小部件的次要链接标题。
- 参数 $title 是一个字符串,表示小部件次要链接的标题属性。
- 钩子自 WordPress 2.3.0 版本引入,用于 wp_dashboard_primary() 函数中。
原文内容
Filters the secondary link title for the ‘WordPress Events and News’ dashboard widget.
Parameters
$titlestring-
Title attribute for the widget’s secondary link.
Source
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |