user_before_register
Allows modifying registration data before the user is created.
You need to have a working knowledge of Hooks before you get started.
This filter is run when creating users while making a submission with JReviews, if this feature is enabled.
Parameters
Name | Type | Description |
---|---|---|
$userData |
parameter |
(array) data passed to CMS registration function (username, name, email, password, activation) |
$data |
parameter |
(array) data submitted with registration form |
Boilerplate Code
Use the boilerplate code to start using the filter, and add your own logic to modify the first argument and return it.
Clickfwd\Hook\Filter::add('user_before_register', function($userData, $data)
{
// Uncomment line below to view available data passed into hook
// fwd_dd($userData, $data);
return $userData;
});
Source Files
/plugins/user_account.php