bbp_user_login_fields

Output the required hidden fields when logging in.

Description

bbp_user_login_fields(); 

Usage

  1. if ( !function_exists( 'bbp_user_login_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_login_fields(); 
  7.  

Defined (1)

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

/includes/users/template.php  
  1. function bbp_user_login_fields() { 
  2. ?> 
  3.  
  4. <input type="hidden" name="user-cookie" value="1" /> 
  5.  
  6. <?php 
  7.  
  8. // Allow custom login redirection 
  9. $redirect_to = apply_filters( 'bbp_user_login_redirect_to', '' ); 
  10. bbp_redirect_to_field( $redirect_to ); 
  11.  
  12. // Prevent intention hi-jacking of log-in form 
  13. wp_nonce_field( 'bbp-user-login' );