I'm currently writing a plugin, and I would like to start the function before the <html> loads. I was looking at WordPress hooks, but there's no such hook for this?
Thanks!
I'm currently writing a plugin, and I would like to start the function before the <html> loads. I was looking at WordPress hooks, but there's no such hook for this?
Thanks!
You can set the priority of your method.
add_action( 'init', 'your_plugin_method', -999999999);
You must log in to post.