Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    After registration, users are emailed a link to follow to set their password, so there is no immediate opportunity to redirect upon registration. You’ll have to wait until they login with their new password. The problem is there is no reliable way to distinguish new user logins from return users. You can create a way by hooking “register_new_user” action and saving a custom user meta value that is checked after login. This can be checked within the “login_redirect” filter you would use to redirect new logins to the video page.

    To redirect after the video plays would involve JavaScript of some sort. Exactly how depends on the video player used. There are often events fired by the player that your JS can listen for.

    When the final page is reached after the video plays, the user meta value we set upon registration should be cleared if it hasn’t been done previously.

    I’ll help you with some code for the first stage of the flow:

    function custom_registration_redirect() {
        return home_url( '/your-new-page' );
    }
    
    add_filter( 'registration_redirect', 'custom_registration_redirect' );

    This will redirect your users to the page of your choice (currently ‘/your-new-page’)

    Add to functions.php or create as a plugin. Tested and works!

    • This reply was modified 4 years, 6 months ago by Phill. Reason: Edited typo
    Thread Starter fbazuaye

    (@fbazuaye)

    Thanks for the replies
    But this is a wordpress site built with Elementor. can these be achieved with plugins? instead of code?
    Rgds
    Frank Bazuaye

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘AUTO PAGE LOAD’ is closed to new replies.