term_{$field}

过滤钩子
apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context )
参数
  • (mixed) $value Value of the term field.
    Required:
  • (int) $term_id Term ID.
    Required:
  • (string) $taxonomy Taxonomy slug.
    Required:
  • (string) $context Context to retrieve the term field value.
    Required:
定义位置
相关勾子
get_terms_fieldsterm_field_rsspre_term_fieldedit_term_fielduser_field
相关方法
get_term_fieldsanitize_term_fieldthe_idregister_rest_fieldwp_referer_fieldsanitize_user_field
引入
2.3.0
弃用
-

term_{$field}是一个过滤器,允许开发者修改一个特定术语字段的值。例如,term_name是允许开发者修改术语名称的过滤器。

过滤要显示的术语字段。

钩子名称的动态部分$field是指术语字段名称。

$value = apply_filters( "term_{$field}", $value, $term_id, $taxonomy, $context );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 15:09:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: