• beachbumdad

    (@beachbumdad)


    I’m wanting to filter based on wp_headers, but it doesn’t seem to filter when I access wp-admin, the login screen, etc. Only on the main page and when attempting to add or edit posts.

    How can I filter across the entire site?

    Thanks!

    John

Viewing 1 replies (of 1 total)
  • Nate Reist

    (@natereist)

    There are a couple of ways to approach this. the hook init runs when wordpress is loaded on both the frontend and backend. However, you may not want to add a filter add_filter there, you’d more likely want to add an action add_action, but then again you may, depending on what you are trying to accomplish.

    -Nate

Viewing 1 replies (of 1 total)

The topic ‘wp_headers hook vs admin dashboard’ is closed to new replies.