[wp-hackers] PHP 4/5 Classes and WP filters. $this is not working.

Aaron Harun admin at anthologyoi.com
Sat Jun 14 01:09:46 GMT 2008


Thanks Andy, that did it.

On Fri, Jun 13, 2008 at 9:00 PM, Andy Skelton <skeltoac at gmail.com> wrote:
>>                add_filter('the_content', array($this,'afunction'),-10,1);
>>                remove_filter('the_content', array($this,'afunction'),-10,1);
>
> I didn't read the OP so maybe this isn't what you're looking for but
> at a glance I can say you need &$this.
>
> Andy
> _______________________________________________
> 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