WordPress Function to Change default Author Slug

Change default Author Slug

Put this in your functions to change the default Author Slug to whatever you want,
just change the “sellers” to the slug you want.

// Change URL Slug from Author to Sellers
function new_author_base() {
    global $wp_rewrite;
    $author_slug = 'sellers';
    $wp_rewrite->author_base = $author_slug;
}
add_action('init', 'new_author_base');

You may also like...

Leave a Reply

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