钩子文档

comment_form_after

💡 云策文档标注

概述

comment_form_after 是一个 WordPress 动作钩子,在评论表单输出后触发,允许开发者在表单后添加自定义内容或功能。

关键要点

  • 这是一个动作钩子,用于在 comment_form() 函数输出评论表单后执行自定义代码。
  • 钩子定义在 wp-includes/comment-template.php 文件中,通过 do_action('comment_form_after') 调用。
  • 自 WordPress 3.0.0 版本引入,适用于主题或插件开发以扩展评论表单功能。

📄 原文内容

Fires after the comment form.

Source

do_action( 'comment_form_after' );

Changelog

Version Description
3.0.0 Introduced.