Skip to content

Instantly share code, notes, and snippets.

@mavisland
Created February 21, 2014 13:23
Show Gist options
  • Save mavisland/9134132 to your computer and use it in GitHub Desktop.
Save mavisland/9134132 to your computer and use it in GitHub Desktop.
Adding this to the functions.php of your wordpress theme will change the default mysite.com/author/name to mysite.com/profile/name, however you can change this to user or anything that you would like.
<?php
add_action('init', 'change_author_base');
function change_author_base() {
global $wp_rewrite;
$author_slug = 'profile'; // change slug name
$wp_rewrite->author_base = $author_slug;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment