Zoo Visitor
User guide
- Home ›
- Developer extension hooks
Developer extension hooks¶
SAEF hooks¶
visitor_register_end¶
Additional processing when a member is registering through the user side of Zoo Visitor
$edata = $this->EE->extensions->call('visitor_register_end', $member_data, $member_id);
visitor_update_end¶
Additional processing when a member is updated through the user side of Zoo Visitor
$edata = $this->EE->extensions->call('visitor_update_end', $member_data, $member_id);
Control panel hooks¶
visitor_cp_register_end¶
Additional processing when a member is registered in the control panel entry publish
$edata = $this->EE->extensions->call('visitor_cp_register_end', $member_data, $member_id);
visitor_cp_update_end¶
Additional processing when a member is updated in the control panel entry update
$edata = $this->EE->extensions->call('visitor_cp_update_end', $member_data, $member_id);
Hook parameters¶
- $member_data Array of data about the new member like username, email, screen_name.
- $member_id member_id of the registered/updated member
Registration form validation hooks¶
visitor_register_validation_start¶
Additional validation during the member registration validation process
$edata = $this->EE->extensions->call('visitor_register_validation_start', $errors);
Hook parameters¶
- $errors Associative array which contains the already existing error (if any) ex. $errors = array(‘email’ => ‘The email you chose is not available’, ‘password’ => ‘Password too short’) Add your own error messages as an extra key => value pair.