I am adding a WordPress network to an existing website and one of my requirements is to embed the admin utility within our existing sites’ layout.
I’ve written a custom plugin that registers functions to the admin_head
and admin_footer
actions. admin_head
inserts content inside the <head>
tag and admin_footer
inserts content near the end of the <body>
section.
Is there another action that inserts content immediately after the <body>
tag or just before any visible HTML is output by WordPress?
Thanks!
Advertisement
Answer
I don’t think there is a hook/filter that you can use. The best you can do is to use admin_footer.
Edit: I was going through the admin-header.php and found an action in_admin_header
Try it. I am not sure if this will solve you problem though.