Viewing 1 replies (of 1 total)
  • Hi Steve,

    Try this:

    $u = new WP_User( $user_ID );
    // $user_ID should be the id of user those role u want to change.

    // Remove role
    $u->remove_role( ‘administrator’ );

    // Add role
    $u->add_role( ‘agent’ );

    let me know it worked for u or not.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing roles’ is closed to new replies.