Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OscarAbadFolgueira/7db337ecf9ad6424c64c to your computer and use it in GitHub Desktop.
Save OscarAbadFolgueira/7db337ecf9ad6424c64c to your computer and use it in GitHub Desktop.
Wordpress Snippet: Redirigir nuevos usuarios registrados a una página específica
<?php
/**
* This WordPress code snippet redirect new registered users to specific page.
*
* Author: Oscar Abad Folgueira
* Author URI: http://www.oscarabadfolgueira.com
*
* You can copy this snippet and paste in your functions.php or you can build your own plugin
*
* Change the url of the page to your needs.
*/
function oaf_wp_redirect_new_registrations(){
return home_url( '/regalito-para-los-nuevos/' );
}
add_filter( 'registration_redirect', 'oaf_wp_redirect_new_registrations' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment