@since: BuddyPress 5.0.0 Deprecated $membership_id argument.
Description
groups_accept_membership_request()

Accept a pending group membership request.

Source: bp-groups/bp-groups-functions.php:2459