Banner Image for Bulk Update User Roles to a Custom Role Based on Membership Level

The Roles for Membership Levels Add On creates a new WordPress User Role for each membership level you have created. This recipe performs a batch update on all members with the Subscriber role to their level’s custom role, ignoring the Administrator role and any other roles you specify to skip.

The code is designed to be a one-time update script for sites that would like to use the Roles Add On on an existing site with members.

This content requires a premium membership plan.