bp_groupblog_changed_status_group

Bp_groupblog_changed_status_group( $user_id, $group_id ).

Description

bp_groupblog_changed_status_group( $user_id, $group_id ); 

Called when user changes status in the group

Variables ($user_id, $group_id) are switched around for these hooks, therefore we put these in a sepperate function.

Parameters (2)

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

Usage

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

Defined (1)

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

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