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

Andy Skelton skeltoac at gmail.com
Sat Jun 14 01:00:21 GMT 2008

>                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.


More information about the wp-hackers mailing list