• 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!

Viewing 1 replies (of 1 total)
  • rbncha

    (@rbncha)

    You can set the priority of your method.
    add_action( ‘init’, ‘your_plugin_method’, -999999999);

Viewing 1 replies (of 1 total)
  • The topic ‘How do I start a function in a plugin before anything else loads?’ is closed to new replies.