[wp-hackers] Page Redirect from Shortcode

Claude Needham gxxaxx at gmail.com
Thu Oct 6 05:41:35 UTC 2011

To solve a problem for my website I would like to use a shortcode with
the ability to redirect the page depending upon the state of a cookie.

Unfortunately this generates:

Warning: Cannot modify header information - headers already sent by
(output started at
in xxxxx/wp/wp-includes/pluggable.php on line 934

Is there an approach that will get me into the process early enough
that wp_redirect() is still viable?

Claude Needham

More information about the wp-hackers mailing list