钩子文档

lost_password_html_link

💡 云策文档标注

概述

lost_password_html_link 是一个 WordPress 过滤器,用于修改用户重置丢失密码的 HTML 链接。它允许开发者自定义链接的显示内容。

关键要点

  • 这是一个过滤器,用于过滤重置密码的 HTML 链接。
  • 参数 $html_link 是一个字符串,表示指向丢失密码表单的 HTML 链接。
  • 通过 apply_filters 调用,开发者可以修改链接内容。

代码示例

echo apply_filters( 'lost_password_html_link', $html_link );

注意事项

  • 此过滤器在 WordPress 6.1.0 版本中引入。
  • 使用时需确保 $html_link 参数为有效的 HTML 字符串。

📄 原文内容

Filters the link that allows the user to reset the lost password.

Parameters

$html_linkstring
HTML link to the lost password form.

Source

echo apply_filters( 'lost_password_html_link', $html_link );

Changelog

Version Description
6.1.0 Introduced.