Skip to content

Instantly share code, notes, and snippets.

@axxe16
Created October 30, 2017 08:25
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 axxe16/ccfa4e0da98a431e26dbe3642c6dcccf to your computer and use it in GitHub Desktop.
Save axxe16/ccfa4e0da98a431e26dbe3642c6dcccf to your computer and use it in GitHub Desktop.
Permette il redirect in qualunque punto #redirect #wp #wordpress
<?php
// *F001* filtro per permettere il redirect
//allow redirection, even if your theme starts to send output to the browser
add_action('init', 'clean_output_buffer');
function clean_output_buffer() {
ob_start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment