groups_remove_data_for_user( int $user_id )

Delete all group membership information for the specified user.

Parameters Parameters


(int) (Required) ID of the user.

Source Source

File: bp-groups/bp-groups-functions.php

function groups_remove_data_for_user( $user_id ) {
	BP_Groups_Member::delete_all_for_user( $user_id );

	 * Fires after the deletion of all data for a user.
	 * @since 1.1.0
	 * @param int $user_id ID of the user whose data is being deleted.
	do_action( 'groups_remove_data_for_user', $user_id );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.