ExpressionEngine

2.11.9 User Guide

Retired Documentation

You are using the documentation for version 2.11.9. Go here for the latest version or check here for your available upgrades to the latest version.

Members Controller Extension Hooks

cp_members_member_create_start

cp_members_member_create_start()

Perform additional tasks prior to / take over the control panel member creation routine.

How it’s called:

$this->extensions->call('cp_members_member_create_start');
if ($this->extensions->end_script === TRUE) return;
Return type:Void

New in version 1.4.2.

cp_members_member_create

cp_members_member_create($member_id, $data)

Additional processing after a member is created via the control panel. Executes after member is created, but before stats are recounted.

How it’s called:

$this->extensions->call('cp_members_member_create', $member_id, $data);
if ($this->extensions->end_script === TRUE) return;
Parameters:
  • $member_id (int) – New member’s ID
  • $data (array) – New member’s data
Return type:

Void

New in version 1.4.0: Notes about addition

cp_members_member_delete_end

cp_members_member_delete_end($member_ids)

Allows additional processing when a member is deleted from the control panel.

How it’s called:

$this->extensions->call('cp_members_member_delete_end', $member_ids);
if ($this->extensions->end_script === TRUE) return;
Parameters:
  • $member_ids (array) – IDs of members deleted
Return type:

Void

New in version 1.4.0.

cp_members_validate_members

cp_members_validate_members()

Additional processing after pending members are validated via the Control Panel.

How it’s called:

$this->extensions->call('cp_members_validate_members');
if ($this->extensions->end_script === TRUE) return;
Return type:Void

New in version 1.5.2.