bbp_edit_user_form_fields

Output the required hidden fields when editing a user.

Description

bbp_edit_user_form_fields(); 

Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_edit_user_form_fields() { 
  2. ?> 
  3.  
  4. <input type="hidden" name="action" id="bbp_post_action" value="bbp-update-user" /> 
  5. <input type="hidden" name="user_id" id="user_id" value="<?php bbp_displayed_user_id(); ?>" /> 
  6.  
  7. <?php wp_nonce_field( 'update-user_' . bbp_get_displayed_user_id() );