钩子文档

comment_form_must_log_in_after

💡 云策文档标注

概述

comment_form_must_log_in_after 是一个 WordPress 动作钩子,在评论表单中 HTML 格式的“必须登录后”消息之后触发,允许开发者在此处添加自定义功能。

关键要点

  • 这是一个动作钩子,用于在评论表单的特定位置执行自定义代码。
  • 触发时机:在评论表单中显示“必须登录后”消息之后。
  • 首次引入于 WordPress 3.0.0 版本。
  • 相关函数:comment_form(),用于在模板中输出完整的评论表单。

代码示例

do_action( 'comment_form_must_log_in_after' );

📄 原文内容

Fires after the HTML-formatted ‘must log in after’ message in the comment form.

Source

do_action( 'comment_form_must_log_in_after' );

Changelog

Version Description
3.0.0 Introduced.