• Resolved stosun

    (@stosun)


    Hi,
    First of all, I thank you for this valuable plugin.
    I add metabox key “company” fields to user meta by formidable registration plugin. Then user can select company-1,company-2, etc.. as metabox value when registration.
    I add access levels like company-1, company-2 at some pages by your plugin.
    I need to give access to some page for user which has the same metabox value.

    I see that some metaboxes like “_ca_level” and “_ca_level_147” at PhpMyAdmin.

    How can I add user meta value automatically ?
    Could you give me any snippet or suggestion?

    Regards

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

    (@intoxstudio)

    Hi,

    I am glad you find the plugin useful!

    You would need to hook into the registration made with Formidable and do this:

    
    $level_id = rua_get_level_by_name($value);
    rua_get_user()->add_level($level_id);
    

    where $value can be ‘company-1’

    I hope this helps!

    Thread Starter stosun

    (@stosun)

    Hi Joachim,
    Thanks for your response.
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto add member when registratiiton’ is closed to new replies.