Custom Plugin – Getting Code to run on WP_ADMIN Login
-
Hey,
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?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Plugin – Getting Code to run on WP_ADMIN Login’ is closed to new replies.