lostpassword_form
Action HookDescription
Fires inside the lostpassword form tags, before the hidden fields.Hook Information
File Location |
wp-login.php
View on GitHub
|
Hook Type | Action |
Line Number | 909 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into lostpassword_form
add_action('lostpassword_form', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-login.php:909
- How this hook is used in WordPress core
<?php
904 /**
905 * Fires inside the lostpassword form tags, before the hidden fields.
906 *
907 * @since 2.1.0
908 */
909 do_action( 'lostpassword_form' );
910
911 ?>
912 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
913 <p class="submit">
914 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password' ); ?>" />
PHP Documentation
<?php
/**
* Fires inside the lostpassword form tags, before the hidden fields.
*
* @since 2.1.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.