Created
February 29, 2016 20:30
-
-
Save OscarAbadFolgueira/7db337ecf9ad6424c64c to your computer and use it in GitHub Desktop.
Wordpress Snippet: Redirigir nuevos usuarios registrados a una página específica
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
<?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