bp_remove_member_type_on_user_delete( int $user_id )

Delete a user’s member type when the user when the user is deleted.

Parameters Parameters


(int) (Required) ID of the user.

Top ↑

Return Return

(false|array) $value See bp_set_member_type().

Source Source

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

function bp_remove_member_type_on_user_delete( $user_id ) {
	return bp_set_member_type( $user_id, '' );

Top ↑

Changelog Changelog

Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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