title: WordPress hook directly after body tag
body: <p>I'm having problems finding the right hook to use for my plugin. I'm trying to add a message to the top of each page by having my plugin add a function. What's the best hook to use? I want to insert content right after the <code>&lt;body&gt;</code> tag.</p>
  
  <hr>
  
  <p>EDIT: I know it's three years later now, but here is a <a href="http://en.wikipedia.org/wiki/Trac" rel="noreferrer">Trac</a> ticket for anyone who is interested: <a href="http://core.trac.wordpress.org/ticket/12563" rel="noreferrer">http://core.trac.wordpress.org/ticket/12563</a></p>
  
  <hr>
  
  <p><strong>EDIT: July 31st, 2019</strong></p>
  
  <p>The linked <a href="https://core.trac.wordpress.org/ticket/12563" rel="noreferrer">Trac Ticket</a> was closed as this feature was added in WordPress 5.2. You will find the Developer notes for this feature here (requires JavaScript enabled to display):</p>
  
  <p><em><a href="https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/" rel="noreferrer">Miscellaneous Developer Updates in 5.2</a></em></p>
  
  <p>I will not update the "correct answer" to one that mentions 5.2 for historical reasons, but rest assured that I'm aware and that the built-in  hook is the correct one to use.</p>