Filter Hook callback error, is it due to using $this inside a filter or something else?
Problem The issue is that WordPress uses call_user_func() or call_user_func_array() to allow plugin/theme developers to add callables to hooks. Callables, or callback functions, can be simple functions, object methods, or static class methods. We need to format the callable as either a string or array depending on the type of callback we want. Simple Functions … Read more