WordPress Snippets at WPcustoms

Change author url base slug

This rewrite function changes yoursite.com/author/name to yoursite.com/profile/name


/**
 * Snippet Name: Change author url base slug
 * Snippet URL: http://www.wpcustoms.net/snippets/change-author-url-base-slug/
 */
 add_action('init', 'wpc_change_author_base');
function wpc_change_author_base() {
    global $wp_rewrite;
    $author_slug = 'profile'; // change slug name
    $wp_rewrite->author_base = $author_slug;
}