钩子文档

edit_link_category_form_fields

💡 云策文档标注

概述

edit_link_category_form_fields 是一个 WordPress 动作钩子,在编辑链接分类表单字段显示后触发。该钩子已弃用,建议使用替代钩子。

关键要点

  • 钩子名称:edit_link_category_form_fields
  • 触发时机:在编辑链接分类表单字段显示后执行
  • 参数:$tag(WP_Term 对象,表示当前链接分类术语)
  • 弃用状态:自 WordPress 3.0.0 起弃用,推荐使用 {$taxonomy}_edit_form_fields 钩子替代
  • 引入版本:WordPress 2.9.0

注意事项

  • 此钩子已弃用,开发者应迁移到 {$taxonomy}_edit_form_fields 钩子以保持兼容性和最佳实践。

📄 原文内容

Fires after the Edit Link Category form fields are displayed.

Parameters

$tagWP_Term
Current link category term object.

Source

do_action_deprecated( 'edit_link_category_form_fields', array( $tag ), '3.0.0', '{$taxonomy}_edit_form_fields' );

Changelog

Version Description
3.0.0 Deprecated. Use '{$taxonomy_edit_form_fields'} instead.
2.9.0 Introduced.