How to pass a parameter to this add_filter example [duplicate]
The trick Toscho used was to get around the problem using Objects. So lets say we have a filter named xyz, that passes in some post content. The goal of this hypothetical scenario is to append a word to the content that we can not “hardcode”. Here’s the basic filter: add_filter( ‘xyz’, ‘test’ ); function … Read more