There are no pre-requisites in order for you to be able to implement this solution.
Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.
Need support with the snippet? We’re Here to Help You, Contact Us!
This code snippets changes the user role upon registration. By default, users are assigned the “Customer” user role. This snippet allows you to change that and assign a different user ole. In this specific example, we change the user role to “Contributor”. If you wish to assign a custom user role, you will first need to create this role. Search our guides on user roles to see how to create new user roles and apply certain capabilities.
Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.