[wp-hackers] Re: template_redirect Examples
false.hopes at gmail.com
Fri Aug 19 16:27:25 GMT 2005
The same way that the you would anywhere in the codex, the query string.
On 8/19/05, Bill Smith <ml_wordpress at copperleaf.org> wrote:
> The part I'm missing (that I didn't ask very well) is in the function
> called by the hook, how do I grab the "name" of the page and any of it's
> Ex. http://www.copperleaf.org/mypage/ or
> David House wrote:
> >Bill, it's just like any other hook. Write the code you want to happen
> >just before the template redirects happen, stick it in a function,
> >then hook that function onto the templates_redirect action as
> >described in the Plugin API page on the codex.
> >On 8/19/05, Bill Smith <ml_wordpress at copperleaf.org> wrote:
> >>I'm trying to play with pages and template_redirect in a plugin. Does
> >>anbody know of some examples or resources that can better explain it?
> >>The info in the codex seems a little vague.
> >>wp-hackers mailing list
> >>wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers