Skip to:
Content

BuddyPress.org

Ticket #5575: 5575.option1.diff

File 5575.option1.diff, 559 bytes (added by imath, 10 years ago)
  • bp-members/bp-members-classes.php

    diff --git bp-members/bp-members-classes.php bp-members/bp-members-classes.php
    index b1a2f9d..f32ed60 100644
    class BP_Signup { 
    636636
    637637                                // we have a user id, account is not active, let's delete it
    638638                                } else {
     639                                        // Force deletion
     640                                        add_filter( 'bp_disable_account_deletion', '__return_false' );
     641
    639642                                        bp_core_delete_account( $user_id );
     643
     644                                        // remove the filter
     645                                        remove_filter( 'bp_disable_account_deletion', '__return_false' );
    640646                                }
    641647                        }
    642648