Created
October 17, 2013 04:52
-
-
Save ducban/7019345 to your computer and use it in GitHub Desktop.
Here is a very handy code snippet to redirect the user to a custom page after registration on your WordPress blog or website. Super useful for those using WP as a CMS! Simply drop this snippet in your functions.php or a plugin.
This file contains hidden or 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
function __my_registration_redirect(){ | |
return home_url( '/my-page' ); | |
} | |
add_filter( 'registration_redirect', '__my_registration_redirect' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment