Change WP role names

October 20, 2021
Code Category:

I had a project recently where I just didn't want the same old "Subscriber", "Author", "Editor" roles. So, I used this. It basically just changes the names, but keeps the same capabilities as the original roles. Handy to be able to do it without a plugin.

function custom_login_logo() {
    echo '<style type="text/css">
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/my-custom-login-logo.png) !important; }
    </style>';
}
add_action('login_head', 'custom_login_logo');

©2021 Fotan Web Design