• Resolved nonprofitweb

    (@nonprofitweb)


    I am wondering if there is a way to import users with the correct access levels assigned. I have exported users using a different plugin and looked at the fields and it appears that this plug adds the a _ca_level_# for each level but I can’t figure out the number that is listed in that column.

    Thank you for your insight and help.

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Currently there is no built-in import/export functionality, but you are correct that the level relationship is saved in that format. the # refers to the ID of the level (post_type=restriction) in wp_posts

    You could also write a script and do something like this:

    
    $user_ids = [1,2,3];
    $level_id = rua_get_level_by_name('level-name');
    foreach($user_ids as $user_id)
        rua_get_user($user_id)->add_level($level_id);
    }
    

    I hope this helps!

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