get_edit_term_link
云策文档标注
概述
本文档介绍 WordPress 中的 get_edit_term_link 过滤器,用于修改分类法术语的编辑链接。开发者可以通过此过滤器自定义编辑链接的生成逻辑。
关键要点
- get_edit_term_link 是一个过滤器,允许修改分类法术语的编辑链接。
- 过滤器参数包括 $location(编辑链接)、$term_id(术语 ID)、$taxonomy(分类法名称)和 $object_type(对象类型)。
- 在 WordPress 3.1.0 版本中引入,相关函数为 get_edit_term_link()。
原文内容
Filters the edit link for a term.
Parameters
$locationstring-
The edit link.
$term_idint-
Term ID.
$taxonomystring-
Taxonomy name.
$object_typestring-
The object type.
Source
return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type );
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |