Forums

Output anything to wp_head() (6 posts)

  1. Groovinator
    Member
    Posted 1 year ago #

    Hi,

    I can't seem to find an answer to this or perhaps I'm looking for the wrong question. I'm diving into making WP plug-ins starting with easy stuff.

    Can anyone tell me how I output something (anything - even just a line of text so I can see it work) to wp_head() with a plug-in? Basically I wan't it to output as soon as the plug-in in activated.

    Thanks in advance.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. Groovinator
    Member
    Posted 1 year ago #

    Thanks! Exactly what I was looking for. And of course the same can be done for wp_head()

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Sorry - I thought you were already trying to hook something into wp_head?

  5. Groovinator
    Member
    Posted 1 year ago #

    Erm wp_footer I meant - sorry trying to do too may thing at once here. Thanks again.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Yes - it's the same for wp_footer(). You can use that as a hook too.

Topic Closed

This topic has been closed to new replies.

About this Topic