Forums

admin_head to late in code (2 posts)

  1. jfar
    Member
    Posted 5 years ago #

    Hi,
    It's not possible to make any redirection, because the header are already send when admin_head hook is called.

    I think admin_head should be between head and the first meta tag, this would allow redirection to be done.

    Vhost plugin typically need this to work in 2.0.4.

    jfar

  2. Austin Matzko
    Member
    Posted 5 years ago #

    There are plenty of hooks available before WordPress prints page headers. Try a hook like 'init' or 'plugins_loaded.'

Topic Closed

This topic has been closed to new replies.

About this Topic