Skip to content

Commit

Permalink
Cleanup user_meta on plugin uninstall (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyparker authored Jun 17, 2024
1 parent 349edaf commit e399628
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@
delete_site_option( 'duoup_roles' );
delete_site_option( 'duoup_failmode' );
delete_site_option( 'duoup_xmlrpc' );

// Delete Duo user_meta fields for all users
delete_metadata( 'user', 0, 'duo_auth_status', '', true );
delete_metadata( 'user', 0, 'duo_auth_redirect_url', '', true );
delete_metadata( 'user', 0, 'duo_auth_oidc_state', '', true );

0 comments on commit e399628

Please sign in to comment.