JoryHogeveen / view-admin-as

View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
https://wordpress.org/plugins/view-admin-as/
GNU General Public License v2.0
45 stars 4 forks source link

Action/Filter manager (Loader) #77

Closed JoryHogeveen closed 6 years ago

JoryHogeveen commented 6 years ago

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: