groups_premote_member

  • do_action( 'groups_premote_member', $group_id, $user_id, $status )

    Source Reference:

    • Component: BuddyPress:: bp-groups
      File: /bp-groups/bp-groups-functions.php :: Trac Source Line: 691
      function groups_promote_member( $user_id, $group_id, $status ) {
      	global $bp;
      
      	if ( !$bp->is_item_admin )
      		return false;
      
      	$member = new BP_Groups_Member( $user_id, $group_id );
      
      	do_action( 'groups_premote_member', $group_id, $user_id, $status );
      
      	return $member->promote( $status );
      }
      
      function groups_demote_member( $user_id, $group_id ) {
      	global $bp;
      
      	$member = new BP_Groups_Member( $user_id, $group_id );
      
      	do_action( 'groups_demote_member', $group_id, $user_id );
      

Hook: add_action: groups_premote_member instances (1)

  • add_action( 'groups_premote_member',             'bp_core_clear_cache' )
    $function_to_add: bp_core_clear_cache
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-cache.php :: Trac Source Line: 44
      add_action( 'groups_accept_invite',              'bp_core_clear_cache' );
      add_action( 'groups_reject_invite',              'bp_core_clear_cache' );
      add_action( 'groups_invite_user',                'bp_core_clear_cache' );
      add_action( 'groups_uninvite_user',              'bp_core_clear_cache' );
      add_action( 'groups_details_updated',            'bp_core_clear_cache' );
      add_action( 'groups_settings_updated',           'bp_core_clear_cache' );
      add_action( 'groups_unban_member',               'bp_core_clear_cache' );
      add_action( 'groups_ban_member',                 'bp_core_clear_cache' );
      

Comments are closed.