Redirect function inside a Shortcode

Posted by Prem Tiwari | Updated on

They usually run on the the_content hook which is well after content is sent to the browser. If you need to redirect based on the presence of a short code you need to check for that short code before any content leaves the server.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers