edit_term_link
云策文档标注
概述
edit_term_link 是一个 WordPress 过滤器,用于修改分类法术语编辑链接的锚标签。它允许开发者自定义链接的 HTML 输出。
关键要点
- 过滤器名称:edit_term_link
- 参数:$link(锚标签字符串)和 $term_id(术语 ID)
- 用途:在显示或检索编辑术语链接时,过滤锚标签内容
- 相关函数:edit_term_link() 用于显示或检索格式化链接
- 引入版本:WordPress 3.1.0
代码示例
$link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after;
原文内容
Filters the anchor tag for the edit link of a term.
Parameters
$linkstring-
The anchor tag for the edit link.
$term_idint-
Term ID.
Source
$link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after;
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |