Skip to content

Instantly share code, notes, and snippets.

@ducban
Created October 17, 2013 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducban/7019345 to your computer and use it in GitHub Desktop.
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.
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