Skip to content

How To Add User Roles To WordPress

In this tutorial, I’ll show you how to add user roles to WordPress with some basic capabilities. It can be a very useful trick if you run a membership.

function tp_add_role() {
    add_role( 'newbie', 'Newbie',
add_action( 'init', 'tp_add_role' );

You can get more details about WordPress roles and capabilities at this link, which you can easily assign to your newly created role. Also, here’s the article if you want to remove default roles from WordPress.

Leave a Reply

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