WordPress.org

Ready to get started?Download WordPress

Forums

Capability Manager Enhanced
Changing user role (1 post)

  1. chirinyu
    Member
    Posted 4 months ago #

    Hey,

    I have previously created a few user roles, now I need to update the role names.

    Since the user roles are visible to users only in the register form, I've tried using JS replace to just simply overwrite the names in the browser. Didn't work though, probably the ajax implementation or the registration form (handled with UserPro).

    Also tried updating wp_user_roles in wp_options table where I have a string like this
    s:13:"professional";a:2:{s:4:"name";s:13:"Professional";s:12:"capabilities";a:2:{s:17:"unfiltered_upload";b:1;s:12:"upload_files";b:1;}}

    I changed the s:13:"Professional"; to s:13:"Company", since I need Professional-role to be named Company-role. No luck, crashed the site.

    Is there a simple way I can achieve this, I have a lot of users so re-creating the roles doesn't seem very tempting.

    https://wordpress.org/plugins/capability-manager-enhanced/

Reply

You must log in to post.

About this Plugin

About this Topic