钩子文档

user_request_action_confirmed

💡 云策文档标注

概述

当用户确认账户操作时触发的 action hook,用于在用户点击确认邮件链接后执行相关逻辑,触发后页面将重定向到 wp-login 或回调函数。

关键要点

  • 触发时机:用户确认账户操作(如通过点击确认邮件链接)时
  • 参数:$request_id(整数类型,表示请求 ID)
  • 使用场景:可用于在用户同意执行操作后添加自定义处理代码
  • 重定向行为:触发后页面将重定向到 wp-login,除非回调函数先执行重定向或退出
  • 版本历史:从 WordPress 4.9.6 版本引入

📄 原文内容

Fires an action hook when the account action has been confirmed by the user.

Description

Using this you can assume the user has agreed to perform the action by clicking on the link in the confirmation email.

After firing this action hook the page will redirect to wp-login a callback redirects or exits first.

Parameters

$request_idint
Request ID.

Source

do_action( 'user_request_action_confirmed', $request_id );

Changelog

Version Description
4.9.6 Introduced.