We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Post registration processing

Development and Programming

spyro's avatar
spyro
89 posts
14 years ago
spyro's avatar spyro

I would like to do some extra processing after a user registers. To do this, I built an extension and tried using the member_member_register and the member_member_register_start hooks. Either both of them are getting triggered to early in the process or I am not seeing the right variables to set.

What I am trying to accomplish is to automatically insert values into custom member fields after the user is registered.

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

You are going to have to insert the data yourself. Something along these lines:

//called on member_member_register

public function extension_method_name($data, $member_id) 
{
    $custom_fields = array(
        'm_field_id_{id}' => 'some value',
        ...
    );

    $this->EE->db->where('member_id', $member_id)->update('member_data', $custom_fields);
}
       
spyro's avatar
spyro
89 posts
14 years ago
spyro's avatar spyro

That is exactly what I was looking for. Thank you.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.