wpmem_ic_code_used

Description

Fires after an invite code has been used for registration.

Parameters

$code_info
(array) An array of details of the code used.

“code_id” | integer | The invite code’s database primary key ID
“user_id” | integer | The user ID of the user
“invite_code” | string | The invite code used to register
“date_used | string | The date the code was used as MySQL timestamp (in string format)

Usage

[snippet slug=wpmem_ic_code_used-example lang=php]

Changelog

  • Introduced in 2.0.0

Source

wpmem_ic_code_used is located in includes/class-wp-members-invite-codes.php