[wp-hackers] Simple plugin help

Toivo Lainevool tlainevool at xmlpatterns.com
Sat Aug 21 15:54:25 UTC 2004


Mark Shields wrote:

>In case he doesn't understand (I didn't at first but I think I do
>now), let me re-emphasize:  the add_filter() function will only work
>on objects that have API hooks, such as "the_content".  Unless you
>were to somehow add your own hook to the index.php that could use
>add_filter() the add_filter() function will not work for text you
>simply place in the index.php file.
>  
>
OK, It makes sense now.  I feel a little stupid, but for some reason I 
was thinking of "the_content" as the content of the web page that gets 
returned when an http request is done, not the content of a post.  I 
should RTFM.

Thanks for you help, Mark and Alex.

-- 

Toivo Lainevool
http://0blog.com/




More information about the hackers mailing list