Skip to content

Action/Filter manager (Loader) #77

@JoryHogeveen

Description

@JoryHogeveen

Currently I don't manage where and when I add actions and filters.
Might come in handy to create a manager class that handles all this.
It will be a lot easier to register/de-register all hooks etc.

Idea source: https://github.com/DevinVinson/WordPress-Plugin-Boilerplate/blob/master/plugin-name/includes/class-plugin-name-loader.php

Differences from example:
Register in WP right away, do not use/create the run method.

Maybe later:

  • Add an extra layer in there for type identifiers (core, view, role-defaults, etc.)
  • Also let it handle apply_filters and do_action ?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions