Created
May 9, 2020 18:59
-
-
Save Oscar-Abad-Folgueira/46b8522f59ccd9c4baaf6eb6afe4c9f7 to your computer and use it in GitHub Desktop.
WordPress Snippet: Redirigir a los 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 | |
/** | |
* @snippet WordPress Snippet: Redirigir a los usuarios registrados a una página específica | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/wordpress-snippet-redirigir-a-nuevos-usuarios-registrados-a-una-pagina-especifica/ | |
*/ | |
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