[wp-hackers] Simple plugin help

Mark Shields laebshade at gmail.com
Sat Aug 21 16:23:45 UTC 2004


No problem.  You can always use preg_replace to search and replace and
text you want that IS in the index.php file, you just can't use the
API Hooks built into WordPress to do that.

On Sat, 21 Aug 2004 08:54:25 -0700, Toivo Lainevool
<tlainevool at xmlpatterns.com> wrote:
> 
> 
> 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/
> 
> 
> 
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>



More information about the hackers mailing list