Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change default Wordpress Author slug to profile
add_action('init', 'cng_author_base');
function cng_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