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

Hook, 'cp_members_member_create'

Development and Programming

Nige_EE's avatar
Nige_EE
17 posts
14 years ago
Nige_EE's avatar Nige_EE

Hi EE Devlopers,

I am new with EE and not quite sure what to make of the User Doc relating to;

$edata = $this->extensions->call('cp_members_member_create', $member_id, $data); 
if ($this->extensions->end_script === TRUE) return;

I have created an ‘Extension’ so far that makes a RESTful call to a third-party CRM app. It returns a string that I would like to insert to a Custom Member Field I have created.

After CP Register Member, I would like to insert the data string, using the Extension Hook, yet I am not quite sure how to work with the $member_id. It is not actually available as the variable $member_id. I tried ‘db->insert_id(); Again no go.

I am sure it will be easy once I understand how to make use of the $member_id.

Any help would be greatly appreciated. Thanks.

       

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.