How To Remove Author Prefix From Slug In WordPress

Earlier we shared a snippet to change the author prefix from WordPress author slug, which will change to

Now, it’s time to share another snippet which will remove the author prefix from slug in WordPress, which will change yoursite/author/name to yoursite/name. You can use this snippet if your WordPress is a personal blog with a single author, which makes some sense to me.

Just add following snippet to your current theme’s functions.php file: