User Registration

Step by step documentation to set up a user registration form for your website.

Available Hooks

Here you can find all the available hooks on the User Registration plugin. You can write your custom functions using the given hooks.

After the user is approved by the admin #

Hook: ur_user_status_updated

Sample:

add_action( 'ur_user_status_updated' , 'create_customer_365', 10, 3);
function create_customer_365( $status, $user_id, $alert_user)
{
	//code part

}
https://prnt.sc/N7veh5qBaq-X

Before Registration #

Hook: user_registration_before_register_user_action

Sample:

do_action( 'user_registration_before_register_user_action', self::$valid_form_data, $form_id );

After Registration #

Hook: user_registration_after_register_user_action

Sample:

do_action( 'user_registration_after_register_user_action', $form_data, $form_id, $user_id );

After Email Confirmation #

add_action( 'user_registration_check_token_complete', 'user_registration_after_email_confirmation', 10, 2 );
function user_registration_after_email_confirmation( $user_id, $user_reg_successful ) {
    if ( ! $user_reg_successful ) {
        return;
    }
   // Do your action here.
}

Powered by BetterDocs

Scroll to top