add_filter: How to pass parameters to functions ?
So I create a simple plugin to display data via add_filter. I can invoke my php function with add_filter. How can I pass a parameter to my function? One post/page I want to display stats for Red Sox, in another stats for White Sox. I want to call the same function and simply pass a parameter to indicate which stats to display? How? I see in syntax says number of args but how do I pass? Help! Thanks
- The topic ‘add_filter: How to pass parameters to functions ?’ is closed to new replies.