Support » Networking WordPress » How to allow users to Delete Themselves From Multisite?

  • Sometimes a user will want to completely delete himself and own blog from my Network, any plugins to do this?

    I set All my users to Authors in my Network…..I tried “Delete Me” and “Never Let Me Go” plugins but don’t work

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can delete them, the users cannot delete themselves. Most people don’t want to allow users to do that, since … well users are silly.

    http://wordpress.org/extend/plugins/user-self-delete/ comes to mind. You would have to extrapolate and expand it though.

    if ($_POST['delete_me'] == "yes") {
          mysql_query("DELETE FROM wp_users WHERE id='".$_POST['user_ID']."'");
          echo '<script type="text/javascript">window.location = "'.get_option('siteurl') . '/wp-login.php"</script>';
        }

    This is stupid as $_POST[‘user_ID’] is never sanitized and if I pass 1 OR 1 as the ID, the plugin will happily delete ALL users from the database.

    So fix it 🙂 Since you’re going to have to improve it anyway to make it clean up the sites, you can do that while you’re in there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to allow users to Delete Themselves From Multisite?’ is closed to new replies.