Make WordPress PHP Class Instances Available to Developers
Removing hook that uses function or static method as a callback is simple with remove_filter() or remove_action() functions because you know exactly what callback was attached to some hook. It gets a little tricky when your callback is an object and that object is not made available so you can’t unhook it. Consider following, simple… Read more Make WordPress PHP Class Instances Available to Developers