bbp_user_register_fields

Output the required hidden fields when registering.

Description

bbp_user_register_fields(); 

Usage

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

Defined (1)

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

/includes/users/template.php  
  1. function bbp_user_register_fields() { 
  2. ?> 
  3.  
  4. <input type="hidden" name="action" value="register" /> 
  5. <input type="hidden" name="user-cookie" value="1" /> 
  6.  
  7. <?php 
  8.  
  9. // Allow custom registration redirection 
  10. $redirect_to = apply_filters( 'bbp_user_register_redirect_to', '' ); 
  11. bbp_redirect_to_field( add_query_arg( array( 'checkemail' => 'registered' ), $redirect_to ) ); 
  12.  
  13. // Prevent intention hi-jacking of sign-up form 
  14. wp_nonce_field( 'bbp-user-register' );