single_cat_title
云策文档标注
概述
single_cat_title 是一个 WordPress 过滤器钩子,用于过滤分类存档页面的标题。它允许开发者修改或自定义分类存档页面的标题显示。
关键要点
- single_cat_title 是一个过滤器钩子,用于过滤分类存档页面的标题。
- 参数 $term_name 是字符串类型,表示正在显示的分类名称。
- 源代码示例:$term_name = apply_filters( 'single_cat_title', $term->name );
- 相关函数:single_term_title(),用于显示或检索分类法术语存档的页面标题。
- 引入版本:WordPress 2.0.10。
原文内容
Filters the category archive page title.
Parameters
$term_namestring-
Category name for archive being displayed.
Source
$term_name = apply_filters( 'single_cat_title', $term->name );
Changelog
| Version | Description |
|---|---|
| 2.0.10 | Introduced. |