Which hook is best to use if my script send header information?
-
I have plugin that generates cookie when triggered by add_action(). I think hook ‘init’ should do the job but it seems the admin page also triggers ‘init’ conflicting with my script. I wanted the functionality of the plugin to be present both in admin and front-end of the user.
- The topic ‘Which hook is best to use if my script send header information?’ is closed to new replies.