Tag: filters
-
Creating Objects on Hooks/Actions
Lets say we had a class that set up some important things. These things needed to be added on the admin_init hook, and they were done in our classes constructor. How would we create our object so they get set up on the admin_init hook? View the code on Gist. Some people may try to…