By default, author profiles are accessible using the pre-defined slug yourwebsite.com/author/name. What if there will be a case when you want to use the term “author-profile” or any other instead of just “author” in the URL. Pasting the following code in your theme’s functions.php file will change author URL base. Remember to replace profile on line 4 by any slug you like.

Snippet Source/Credit: Kevin Chard