Skip to content

Instantly share code, notes, and snippets.

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 Oscar-Abad-Folgueira/46b8522f59ccd9c4baaf6eb6afe4c9f7 to your computer and use it in GitHub Desktop.
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
<?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