Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally delete user #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anvilzephyr
Copy link

Only delete user if user has no other role and is not administrator. Prevents inadvertent deletion of pre-existing users.

Only delete user if user has no other role and is not administrator
@sc0ttkclark
Copy link

Needs basic conflict resolution but otherwise the intent is excellent here.

@sc0ttkclark
Copy link

The latest logic does support making auto-delete WP user account optional via https://github.com/wp-insider/affiliates-manager-plugin/blob/master/wpaffiliatemanager/classes/ListAffiliatesTable.php#L137 but it does not account for only deleting if they were an affiliate user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants