recovery_mode_email_link_ttl
云策文档标注
概述
recovery_mode_email_link_ttl 是一个 WordPress 过滤器,用于控制恢复模式邮件链接的有效时间。开发者可以通过此过滤器调整链接的过期秒数,确保其至少与邮件速率限制时长一致。
关键要点
- 过滤器名称:recovery_mode_email_link_ttl
- 参数:$valid_for(整数类型),表示链接有效的秒数
- 要求:ttl 必须至少与邮件速率限制时长相同
- 相关函数:WP_Recovery_Mode::get_link_ttl() 用于获取链接有效秒数
- 引入版本:WordPress 5.2.0
代码示例
$valid_for = apply_filters( 'recovery_mode_email_link_ttl', $valid_for );
原文内容
Filters the amount of time the recovery mode email link is valid for.
Description
The ttl must be at least as long as the email rate limit.
Parameters
$valid_forint-
The number of seconds the link is valid for.
Source
$valid_for = apply_filters( 'recovery_mode_email_link_ttl', $valid_for );
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |