Changing the base of author links in the url
In WordPress the author’s page is usually linked to at the url
add_action( 'init', 'change_author_url' ); function change_author_url() { global $wp_rewrite; $wp_rewrite->author_base = 'writer'; }
After adding this function and action hook, the author links look like
Changing the author slug in the url
Changing the author slug in the url requires a bit of doing. WordPress refers to the user’s nicename in the url which defaults to the user’s username. Add a function to update the nicename of a user to change the url. You can also use a plugin such as Edit Author Slug to change the user’s nicename that appears in the url and change the base of the url as well.