groups_accept_all_pending_membership_requests

  • do_action( 'groups_accept_all_pending_membership_requests', $group_id )

    Source Reference:

    • Component: BuddyPress:: bp-groups
      File: /bp-groups/bp-groups-functions.php :: Trac Source Line: 860
      function groups_accept_all_pending_membership_requests( $group_id ) {
      	$user_ids = BP_Groups_Member::get_all_membership_request_user_ids( $group_id );
      
      	if ( !$user_ids )
      		return false;
      
      	foreach ( (array) $user_ids as $user_id )
      		groups_accept_membership_request( false, $user_id, $group_id );
      
      	do_action( 'groups_accept_all_pending_membership_requests', $group_id );
      
      	return true;
      }
      
      /*** Group Meta ****************************************************/
      
      function groups_delete_groupmeta( $group_id, $meta_key = false, $meta_value = false ) {
      	global $wpdb, $bp;
      
      	if ( !is_numeric( $group_id ) )
      

Comments are closed.