How To Change WordPress Author Slug

By default, a WordPress author’s profile is accessible by using /author/ slug, but if sometimes you may need to change the author slug to match your site’s niche. Just like it’s not a suitable slug if your WordPress is an online shop or service.

You can easily change the author slug with a this simple snippet. Add following snippet to your functions.php file:

Replace profile in fourth line with your custom slug.