Using a filter with multiple parameters and $this
There are a lot of fundamental mistakes here that suggest a misunderstanding of what filters are, and how they work. Filters are a way for you to intercept and modify a value. For example: add_filter( ‘my_number’, function( $value ) { return $value + 1; } ); $stuff = apply_filters( ‘my_number’ , 5 ); echo $stuff; … Read more