Timeline for Redirect function inside a Shortcode
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 5, 2013 at 18:58 | comment | added | Harish Chouhan | Yes you are right. Sorry to waste your time. I had multiple instances of your code. I am back to using your above code :) | |
Jun 5, 2013 at 17:10 | comment | added | s_ha_dum |
wp_redirect does not work in a shortcode under normal conditions. I just checked. If it is working for you, your theme or a plugin is doing something much like what I suggested to make it work.
|
|
Jun 5, 2013 at 16:51 | comment | added | Harish Chouhan |
Hello, I added some checks to make sure this code only runs on a specific page, however I noticed, that placing the wp_redirect inside a shortcode also works fine. I tried with javascript and also with wp_redirect( $sso_url ); and it just worked.
|
|
Jun 2, 2013 at 14:52 | vote | accept | Harish Chouhan | ||
Jun 2, 2013 at 14:52 | comment | added | Harish Chouhan | Thanks a tonne. This is just perfect and exactly what I was looking for. | |
Jun 2, 2013 at 14:52 | vote | accept | Harish Chouhan | ||
Jun 2, 2013 at 14:52 | |||||
Jun 1, 2013 at 17:04 | history | answered | s_ha_dum | CC BY-SA 3.0 |