Use simple tricks to change WordPress author permalink structure of your client's WordPress blog, This snippets change author slug URL Base SEO friendly.
The default WordPress author permalink structure for authors is /author/name. For example, on WPbeginner author URL is www.wpbeginner.com/author/wpbeginner/
If your client required to change author slug to another on like the user, profile, member or another word, you can do the task easily using our simple WordPress snippets in your theme's functions.php file.
Add the below snippets to your or your client WordPress theme's functions.php file for Change the Author Slug URL Base without a plugin.
add_action('init', 'cng_author_base'); function cng_author_base() { global $wp_rewrite; $author_slug = 'member'; // change slug name $wp_rewrite->author_base = $author_slug; }
Note: Look at line number 4. Here, I change author slug as a member. You can use your own.
Thanks