Wordpress
allows visitors to register on your website, but they offer you default users with access to certain things, as the administrator of my site, can I create a custom user? That I myself be the one who decides what he has access to and what he doesn't.
Of course you can do it, to manage roles and capabilities in wordpress, you can try using the following functions:
add_role():
Allows you to add a custom role.remove_role():
Delete a role.get_role ():
Gets information about the role and the capabilities associated with it.For example to create a new role you could do something like this:
I hope it helps you.