Visitor Documentation

Developer extension hooks — Visitor documentation

Zoo Visitor

User guide

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.

Others

visitor_delete_end

visitor_login_start

visitor_register

visitor_register_start

visitor_update_start

Support

Having problems setting up and/or using Visitor? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.