Support » Plugins » Hacks » 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?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    Depending on the context from which you add the filter, what you have may be correct. Perhaps there is a flaw in your display_products() method?

Viewing 1 replies (of 1 total)
  • The topic ‘add_filter in wordpress oop plugin’ is closed to new replies.