模板标签-wp_lostpassword_url()

0条评论

说明

该标签返回一个URL,使用户可以通过该URL寻回丢失的密码。

用法

<?php echo wp_lostpassword_url( $redirect ); ?> 

参数

$redirect

(字符串)(可选)寻回密码后进行重定向的URL。

默认值:None

示例

默认用法

<a href="<?php echo wp_lostpassword_url(); ?>" title="Lost Password">Lost Password</a>  

丢失密码,重定向到当前页面

<a href="<?php echo wp_lostpassword_url( get_permalink() ); ?>" title="Lost Password">Lost Password</a>  

丢失密码,重定向到主页

<a href="<?php echo wp_lostpassword_url( get_bloginfo('url') ); ?>" title="Lost Password">Lost Password</a>  

注释

  • 用法:apply_filters在HTML链接文本上调用'lostpassword_url'

历史记录

  • 始见于WordPress 2.8.0版本

源文件

wp_lostpassword_url()位于wp-includes/general-template.php

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.