Passing a parameter to filter and action functions
By default this is not possible. There are workarounds if you do it the OOP way. You could create a class to store the values you want to use later. Example: /** * Stores a value and calls any existing function with this value. */ class WPSE_Filter_Storage { /** * Filled by __construct(). Used by … Read more