WordPress.org

Ready to get started?Download WordPress

Forums

Adding to AdminCP Header Only (4 posts)

  1. fatalx
    Member
    Posted 4 years ago #

    Hello,

    i would like to add a <script></script> code in between <head> </head> of the AdminCP only. I am trying to do this with a plugin. How can it be done?

    Thank You

  2. Brandon Allen
    Member
    Posted 4 years ago #

    Use the admin_head hook. If you only need it shown on the plugin page (like options/settings) use the admin_head-(plugin page).
    http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head-%28plugin_page%29

  3. fatalx
    Member
    Posted 4 years ago #

    Thank You!

  4. Brandon Allen
    Member
    Posted 4 years ago #

    No problem. Can you mark this thread as resolved, please?

Topic Closed

This topic has been closed to new replies.

About this Topic