Site logo

Archived topic

Elements - set priority above other plugins

3 replies · Started by Max on May 20, 2021

Viewing posts 1–4 of 4

Hello,

I have an hook element in wp_head with a priority of 1. However, two plugins I use are still inserting their code above my hook.

How can I ensure the hook element is executing first, before any plugins, as close to <head> as possible?

Thanks,

Max

Hi there,

you can set the Priority to 0 - which is the very first in the priority queue - if however those other plugins are using 0 and are being requested before the element is executed then they may still best it.

Thanks David, that's worked perfectly.

Glad to hear that

This archived topic is closed to new replies.