[wp-hackers] by passing the entire template hierarchy

Mikael Grön skaramicke at gmail.com
Mon Jul 7 12:53:14 UTC 2014


(sorry about the typo, coding in a gmail compose window is not recommended.)

--
Med vänliga hälsningar
Mikael Grön


2014-07-07 14:52 GMT+02:00 Mikael Grön <skaramicke at gmail.com>:

> What are you trying to accomplish?
>
> When I want to run pure code, for cron scripts and stuff, I usually do
> something like this:
>
> <?php
>
> // in plugin or theme
> add_action('get_header', function(){
>     if (strstr($_SERVER['REQUEST_URI'], '/cron/trigger_word')
>     {
>         // My code
>         exit;
>     }
> });
>
> ?>
>
> --
> Regards
> Mikael Grön
>
>
> 2014-07-07 11:34 GMT+02:00 Haluk Karamete <halukkaramete at gmail.com>:
>
> Is there a way to by pass the great system known as the  WordPress Template
>> Hierarchy so that WordPress shoots the ball straight to the last resort
>> which is index.php?
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>


More information about the wp-hackers mailing list