Advertise on Site! You can Advertise on our site. Find out More

how to change the author url in wordpress without wordpress plugin

There is default username in wordpress. admin is default username in wordpress but many times user want to use other wordpress user url for admin user. You can easily do this by using following wordpress hook.

You just need to place following code in functions.php file which is your theme folder.

add_action('init', 'change_wordpress_author_url');
function change_wordpress_author_url() {
global $wp_rewrite;
$author_slug = 'new_author_url';
$wp_rewrite->author_base = $author_slug;
}

You need to choose your author url. Just replace the “new_author_url” word and put in functions.php file.

how to change the author url in wordpress without wordpress plugin

how to change the author url in wordpress without wordpress plugin

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *