Observer pattern package for WordPress hooks