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".

Top ↑

Parameters Parameters


(array) Array of user-submitted data (passed by reference).


(string) Form location.


(array[]) Array of LifterLMS Form Fields (passed by reference).

Top ↑

Source Source

File: includes/forms/class-llms-form-handler.php

View on GitHub

Top ↑

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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.