Support » Plugin: WP Author Slug » [Plugin: WP Author Slug] How to uninstall properly?

  • Resolved Liesl Fawcett

    (@liesl1698)


    Hi, I uninstalled this plugin because I no longer want to use it and all the slugs remained changed. How can I get the usernames back? I no longer want the “sanitized version” of the user’s display name.

Viewing 1 replies (of 1 total)
  • Plugin Author KOB

    (@kobenland)

    Hi Liesl,

    you can get the usernames back by running the following:

    global $wpdb;
    $users = (function_exists('get_users')) ? get_users() : get_users_of_blog();
    
    	foreach ( $users as $user ){
    
    			$wpdb->update(
    				$wpdb->users,
    				array( 'user_nicename'	=>	sanitize_title($user->user_login) ),
    				array( 'ID'				=>	$user->ID )
    			);
    	}

    I’m sorry the plugin didn’t work out for you. I’ll update the plugin with an uninstall routine as soon as I have the time.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Author Slug] How to uninstall properly?’ is closed to new replies.