Skip to content

Instantly share code, notes, and snippets.

@dptole
Last active November 12, 2019 12:04
Show Gist options
  • Save dptole/2d4a1ec7a0a15bfc88fb4ff475f7567c to your computer and use it in GitHub Desktop.
Save dptole/2d4a1ec7a0a15bfc88fb4ff475f7567c to your computer and use it in GitHub Desktop.
WP-trick
// Evitar que o wordpress redirecione caso o host e porta
// utilizados para acessar o cms sejam diferente daqueles
// configurados na instalação
// Adicionar no fim do arquivo wp-load.php
remove_all_actions('template_redirect');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment