Using add_filter to modify a public function of a class
It means that the instance of the class is being passed to the filter callback. This might be useful if the class instance contains properties and methods that you might want to re-use in your filter. Take this example of a class: class MyClass { public function complicated_process( $value ) { // Do something complex … Read more