• Resolved alexiusgrey

    (@alexiusgrey)


    I need to show a message for new just-registered users, before or after their first redirect to their profile. Or instead of redirection, but then with link to their profile page.

    So I need a hook or event of successful registration, because simple jQuery script on button click is not an option – someone can click reg button with empty or wrong registered fields.

    I looked the documentation, I think it could be a right hook, I tried this way, but after registration I’m just redirecting, without message.

    function my_registration_complete( $user_id, $submitted_data, $form_data ) {    
        ?>
        <script type="text/javascript">        
            alert('Congratulations! You have successfully registered. Your promo code for 10% discount was sent to your email');        
        </script>
        <?php }
    
    add_action( 'um_registration_complete', 'my_registration_complete', 10, 3 );
    

    Alert is just for test, there will be a popup ‘.popup-reg’ addClass(‘show’). How can I implement it?

    • This topic was modified 7 months, 1 week ago by alexiusgrey. Reason: evenT
    • This topic was modified 7 months, 1 week ago by alexiusgrey.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What hook can be used to show successful registration message?’ is closed to new replies.