WordPress.org

Ready to get started?Download WordPress

Forums

Adding content to the header (1 post)

  1. ckruse
    Member
    Posted 4 years ago #

    I am creating a plugin which allows user to add content to different sections of there WP site. I am giving as many options as possible for adding the content. I have posts/pages, sidebar, footer and header

    My problem is that I have found all of the actions/filters to call in order to insert this content, except one for the header.

    wp_meta inserts into the sidebar
    wp_footer allows me to insert just before the </body> tag
    the_content into posts and pages

    But how do I insert at the very top of the header? Just after the <body> tag? get_header inserts content before the <html> tag and wp_head inserts content just before </head>

    Is there any action/filter hooks for inserting just after <body>?

Topic Closed

This topic has been closed to new replies.

About this Topic