I recently needed to add some code just before the closing header tag on my theme pages, via a WordPress Plugin.
Of course, I made use of the
wp_head action hook which is perfect for this task. However, my requirement was a little more specific than this. What I actually needed was to make sure the code was guaranteed to be the LAST code added right before the closing head tag. Read More