bp_groupblog_just_joined_group

Bp_groupblog_just_joined_group( $group_id, $user_id ).

Description

bp_groupblog_just_joined_group( $group_id, $user_id ); 

Called when user joins group - by Boone

Parameters (2)

0. $group_id
The group id.
1. $user_id
The user id.

Usage

  1. if ( !function_exists( 'bp_groupblog_just_joined_group' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog.php'; 
  3.  
  4. // The group id. 
  5. $group_id = null; 
  6.  
  7. // The user id. 
  8. $user_id = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_groupblog_just_joined_group($group_id, $user_id); 
  12.  

Defined (1)

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

/bp-groupblog.php  
  1. function bp_groupblog_just_joined_group( $group_id, $user_id ) { 
  2. bp_groupblog_upgrade_user( $user_id, $group_id );