do_action_ref_array( "lifterlms_before_user_{$action}", array $posted_data , string $location , array[] $fields )
Run an action immediately prior to user registration or update.
Description Description
The dynamic portion of this hook, $action
, can be either "registration" or "update".
Parameters Parameters
- $posted_data
-
(array) Array of user-submitted data (passed by reference).
- $location
-
(string) Form location.
- $fields
-
(array[]) Array of LifterLMS Form Fields (passed by reference).
Source Source
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Moved from LLMS_Person_Handler::update() & LLMS_Person_Handler::register(). Added parameters $fields and $args . Triggered by do_action_ref_array() instead of do_action() allowing modification of $posted_data and $fields via hooks. |
3.0.0 | Introduced. |