How to Unhook actions/filters in within Class in plugin
You unhook things the way you added them. In this case, you need to pass a callable that matches what was added. Normally this is the function name e.g. ‘my_function’, but for an non-static method in an object, it has to be [ $object, ‘method_name’ ] where $object is a reference to the object. How … Read more