Created
April 21, 2018 19:53
-
-
Save webprogramacion/109b637be99c9b675f2e1bfdea15e505 to your computer and use it in GitHub Desktop.
Código necesario para redirigir al usuario después de cerrar sesión de WordPress
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
add_action('wp_logout','cerrar_sesion'); | |
function cerrar_sesion() | |
{ | |
wp_redirect("https://pagina a la que queramos redirigir..."); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment