De-coupling Domain Logic in WordPress

Remember that WordPress uses the event-driven design pattern and although we often refer to actions and filters, the concept comes down to hooks. The flow of control through the program goes something like this: Execute the program, Whenever the program comes upon a hook (in WordPress, we’ll see do_action or apply_filters), iterate through all of…