How to get parameters with add_filter with a static method?
First, consult the documentation or source code to see how many arguments are passed to the filter. We can see it has 3 in total, and the comments object is the second one, so you’ll need to have at least two. Next, you’ll want to declare the number of arguments to pass to the function … Read more