I am just starting to write plugins for wordpress and I’m trying to write one that will execute a piece of code whenever someone logins to the admin dashboard.
Specifically I am trying to run a script that will generate a cookie so I can exclude all site admins from showing up on Google Analytics.
Google says that I have to add a piece of code inside the <body> tag how can I do that with a plugin? what hooks would I need?
- The topic ‘Custom Plugin – Getting Code to run on WP_ADMIN Login’ is closed to new replies.