Categories
WordPress

Removing hooked filter / action method that doesn’t use static method

Static method is ideally better to be used as filter / action callback because it is easier to be added and removed. This is especially needed if third party plugin / theme might need to modify your registered callback for whatever reason: