morningtrain/wp-hooks
A Laravel package bringing WordPress-style actions and filters to your PHP applications. Register, fire, and remove hooks with a familiar API, making it easy to add extensibility and event-driven customization to your code.
morningtrain/wp-hooks brings a clean, Laravel-style approach to WordPress actions and filters. It lets you register hooks through dedicated classes instead of scattered add_action() and add_filter() calls, keeping plugin and theme code organized, testable, and easier to maintain.
Define hook classes with clear methods, then let the package wire them into WordPress. The result is predictable hook registration, less boilerplate, and a familiar structure for developers working in Laravel or modern PHP.
add_action()/add_filter() callsHow can I help you explore Laravel packages today?