bbp_user_register

The main action for hooking into a user being registered.

Description

bbp_user_register( (int) $user_id = 0 ); 

Parameters (1)

0. $user_id — Optional. (int)
ID of user being edited

Usage

  1. if ( !function_exists( 'bbp_user_register' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/sub-actions.php'; 
  3.  
  4. // ID of user being edited 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_user_register($user_id); 
  9.  

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_user_register( $user_id = 0 ) { 
  2. do_action( 'bbp_user_register', $user_id );