Wish: Action hook after successful registration
-
Hi, could you please add an action hook at the end of the successful registration. e.g.
it could be inserted at the very end of the else-block (in the clean-login.php of the plugin):if ( is_wp_error( $user_id ) )
$url = esc_url( add_query_arg( ‘created’, ‘failed’, $url ) );
else {
$successful_registration = true;
$user = new WP_User( $user_id );
[…]
do_action( ‘cleanlogin_after_successful_registration’, $user_id );
}This is needed in our case to control the default display_name of a registered user.
I would have posted this via GitHub but I couldn’t find a repository of the current version 1.9.4 (just 1.9.3 here: https://github.com/ahornero/clean-login/blob/master/clean-login.php)
Thank you very much for considering my wish.
- The topic ‘Wish: Action hook after successful registration’ is closed to new replies.