bbp_user_lost_pass_fields()
Output the required hidden fields when user lost password
Description
Source
File: bp-forums/users/template.php
function bbp_user_lost_pass_fields() { ?> <input type="hidden" name="user-cookie" value="1" /> <?php // Allow custom lost pass redirection $redirect_to = apply_filters( 'bbp_user_lost_pass_redirect_to', get_permalink() ); bbp_redirect_to_field( add_query_arg( array( 'checkemail' => 'confirm' ), $redirect_to ) ); // Prevent intention hi-jacking of lost pass form wp_nonce_field( 'bbp-user-lost-pass' ); }
Changelog
Version | Description |
---|---|
bbPress (r2815) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.