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/includesI created a file theme-my-login-custom.php in three of these paths. Still nothing is working
Thanks
- The topic ‘Redirection After Registration’ is closed to new replies.