Description #
This action runs after the user is created during the user registration process. You can use this action to do the additional task for the created user.
/*
* Source Action
*/
do_action('fluentform/created_user', $userId, $feed, $entry, $form);
Usage #
add_action('fluentform/created_user', function ($userId, $feed, $entry, $form)
{
// Do your stuffs here
}, 10, 4);
This code should be placed in the functions.php file of your active theme.
Parameters #
- $userId (int) User ID
- $feed (array) User Feed
- $entry (object) Submission Object
- $form (object) Form Object
Source Code #
This action is located in fluentformpro/src/Integrations/UserRegistration/UserRegistrationApi.php -> createUser()