Created
June 3, 2014 19:02
-
-
Save gblnovaes/615c516c73448d5b0099 to your computer and use it in GitHub Desktop.
Redirecionamento de cadastro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Esse script tem o objetivo de direcionar o cadastro para outra pagina. | |
function redirect_after_register_user($user_id) { | |
echo '<script type="text/javascript">window.location = "http://webeneural.com/wp-admin/user-edit.php?user_id='.$user_id.'"</script>'; | |
} | |
add_action( 'user_register', 'redirect_after_register_user'); | |
essa action precisa ser adcionada no function.php do wordpress. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment