Skip to main content
6 events
when toggle format what by license comment
May 21, 2012 at 17:53 vote accept Alex
May 21, 2012 at 17:53 comment added Alex Thanks a lot... Finally, got the answer. Stephen, you rock!!!
May 21, 2012 at 15:51 comment added Stephen Harris When WordPress calls auth_redirect it will now use your function. You don't (necessarily) call it - WordPress does when it needs to.
May 21, 2012 at 15:51 comment added Chip Bennett @Alex "But, how do I call it for each page load. eg. auth_redirect is called for each page load since it is called in admin.php. I am checking for a condition in my function and I want to check this condition for each page load. So, how do I call my function for each page load???" - That's a separate question entirely, and should be asked separately.
May 21, 2012 at 15:41 comment added Alex Great!!! Thanks for the suggestion. Ok, say now I have defined my custom function in plugins file. But, how do I call it for each page load. eg. auth_redirect is called for each page load since it is called in admin.php. I am checking for a condition in my function and I want to check this condition for each page load. So, how do I call my function for each page load??? I feel calling from admin.php is the only way. Do you know any alternative???
May 21, 2012 at 15:03 history answered Stephen Harris CC BY-SA 3.0