add_filter in wordpress oop plugin
HI all. I am writing a wordpress plugin with OOP techniques. I need to add filter.I write it so:
add_filter('the_content', array($myObject, 'display_products'));
But in that case it starts to load page without end.
How should I write it right?
- The topic ‘add_filter in wordpress oop plugin’ is closed to new replies.