Tag Info

New answers tagged


Nothing I see in Core would do that in either wp_redirect() or wp_sanitize_redirect() (which is used by wp_redirect()). However... both functions are pluggable and so could have been replaced by theme or plugin code. And wp_redirect() has the wp_redirect filter that can be used to alter the redirect location-- the part you are having trouble with. ...


Try following code. add_action('init', 'start_buffer_output'); function start_buffer_output() { ob_start(); }

Top 50 recent answers are included