um_registration_set_extra_data

Hook type

Action

Description

Hook that runs after insert user to DB and there you can set any extra details

Parameters

$user_id

(int) User ID

$args

(array) Form data

Usage

add_action( 'um_registration_set_extra_data', 'function_name', 10, 2 );

Examples

<?php
add_action( 'um_registration_set_extra_data', 'my_registration_set_extra_data', 10, 2 );
function my_registration_set_extra_data( $user_id, $args ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_registration_set_extra_data is located in includes/core/um-actions-register.php::line 73