You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
core
,view
,role-defaults
, etc.)apply_filters
anddo_action
?The text was updated successfully, but these errors were encountered: