How to add code to the header in WordPress
WordPress has a hook that lets us add arbitrary HTML code to the <header> tag of a website. Several plugins can be found that accomplish this, but it’s so easy to do that a plugin is often overkill. Here’s how you can execute an arbitrary PHP function using the wp_head hook: // write some text … Read more