/** * Remove compliments data for the given user id. * * @since 0.0.1 * @package BuddyPress_Compliments * * @param int $user_id The user ID. */ function bp_compliments_remove_data($user_id) { /** * Functions hooked to this action will be processed before deleting the user's complement data. * * @since 0.0.1 * @package BuddyPress_Compliments * * @param int $user_id The User ID. */ do_action('bp_compliments_before_remove_data', $user_id); BP_Compliments::delete_all_for_user($user_id); /** * Functions hooked to this action will be processed after deleting the user's complement data. * * @since 0.0.1 * @package BuddyPress_Compliments * * @param int $user_id The User ID. */ do_action('bp_compliments_after_remove_data', $user_id); }