lostpassword_redirect
Filter HookDescription
Filters the URL redirected to after submitting the lostpassword/retrievepassword form.Hook Information
File Location |
wp-login.php
View on GitHub
|
Hook Type | Filter |
Line Number | 864 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$lostpassword_redirect
|
The redirect destination URL. |
Usage Examples
Basic Usage
<?php
// Hook into lostpassword_redirect
add_filter('lostpassword_redirect', 'my_custom_filter', 10, 1);
function my_custom_filter($lostpassword_redirect) {
// Your custom filtering logic here
return $lostpassword_redirect;
}
Source Code Context
wp-login.php:864
- How this hook is used in WordPress core
<?php
859 *
860 * @since 3.0.0
861 *
862 * @param string $lostpassword_redirect The redirect destination URL.
863 */
864 $redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
865
866 /**
867 * Fires before the lost password form.
868 *
869 * @since 1.5.1
PHP Documentation
<?php
/**
* Filters the URL redirected to after submitting the lostpassword/retrievepassword form.
*
* @since 3.0.0
*
* @param string $lostpassword_redirect The redirect destination URL.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.