bbp_user_lost_pass_fields

Output the required hidden fields when user lost password.

Description

bbp_user_lost_pass_fields(); 

Usage

  1. if ( !function_exists( 'bbp_user_lost_pass_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_user_lost_pass_fields(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/users/template.php  
  1. function bbp_user_lost_pass_fields() { 
  2. ?> 
  3.  
  4. <input type="hidden" name="user-cookie" value="1" /> 
  5.  
  6. <?php 
  7.  
  8. // Allow custom lost pass redirection 
  9. $redirect_to = apply_filters( 'bbp_user_lost_pass_redirect_to', get_permalink() ); 
  10. bbp_redirect_to_field( add_query_arg( array( 'checkemail' => 'confirm' ), $redirect_to ) ); 
  11.  
  12. // Prevent intention hi-jacking of lost pass form 
  13. wp_nonce_field( 'bbp-user-lost-pass' );