Definition:
function wp_lostpassword_url( $redirect = '' ) {}
Returns the Lost Password URL.
Returns the URL that allows the user to retrieve the lost password
Parameters
- string $redirect: Path to redirect to on login.
Defined filters
- lostpassword_url
apply_filters( 'lostpassword_url', $lostpassword_url, $redirect )
Source code
function wp_lostpassword_url( $redirect = '' ) { $args = array( 'action' => 'lostpassword' ); if ( !empty($redirect) ) { $args['redirect_to'] = $redirect; } $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') ); return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect ); }
3891
No comments yet... Be the first to leave a reply!