Support » Plugin: Theme My Login » Redirection After Registration

  • My website is asknoypi.com

    Code:

    <?php
    function tml_new_user_registered( $user_id ) {
    	wp_set_auth_cookie( $user_id, false, is_ssl() );
    	wp_redirect( wp_get_referer() );
    	exit;
    }
    add_action( 'tml_new_user_registered', 'tml_new_user_registered' );
    
    function tml_register_form() {
    	wp_original_referer_field( true, 'previous' );
    }
    add_action( 'register_form', 'tml_register_form' );
    ?>

    What I tried in:
    wp-content/plugins/theme-my-login/
    wp-content/plugins/theme-my-login/admin
    wp-content/plugins/theme-my-login/includes

    I created a file theme-my-login-custom.php in three of these paths. Still nothing is working

    Thanks

    http://wordpress.org/plugins/theme-my-login/

  • The topic ‘Redirection After Registration’ is closed to new replies.