Skip to main content
added 72 characters in body
Source Link
Miguel Dey
  • 173
  • 1
  • 8

I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with the same email if they decide. Is there a way to do this?

$userid = get_current_user_id();
wp_delete_user( $userid );

I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with the same email if they decide. Is there a way to do this?

I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with the same email if they decide. Is there a way to do this?

$userid = get_current_user_id();
wp_delete_user( $userid );
Source Link
Miguel Dey
  • 173
  • 1
  • 8

How can I delete a user from entire multisite nework

I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with the same email if they decide. Is there a way to do this?