AddFunc Head & Footer Code
Easily add code to your head, footer and/or immediately after the opening body tag, site-wide and/or on any individual page/post.
Solid choice
AddFunc Head & Footer Code is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20K+ sites, is rated 5/5 and was last updated 5 months ago, and scores 68/100 on our health check.
- Proven at scale on 20K+ active sites
- Loved by users — 5/5 from 25 reviews
- Only tested up to WordPress 6.9 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where AddFunc Head & Footer Code stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| add to head | #2 |
| footer code | #7 |
| head code | #2 |
| per page | #52 |
| tracking code | #10 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 25 reviews
About AddFunc Head & Footer Code
From the official readme · v2.5Description
Allows administrators to add code to the <head> and/or footer of an individual post (or page or other content) and/or site-wide. Ideal for scripts such as Google Analytics conversion tracking code and any other general or page-specific JavaScript. A very simple, reliable and lightweight plugin.
Installation
- Upload the entire
/addfunc-head-footer-codefolder to the/wp-content/plugins/directory - Activate the plugin through the Plugins menu in WordPress
- Add code site-wide in Settings>Head & Footer Code or on individual Pages/Posts using the Head & Footer Code meta box when in edit mode in a page (or any post type)
Frequently asked questions
Can I add Google Analytics or other tracking code snippets to the ⟨head⟩ tag of my website?
Yep! That’s what AddFunc Head & Footer Code is made for.
Can I add code snippets to the ⟨head⟩ tag or footer of a specific Post or Page?
Yep! That’s what this plugin is made for.
Does AddFunc Head & Footer Code work on custom content types, the same as they do on Posts and Pages?
For the site wide code yes, as long as the theme is set up properly with the wp_head() and wp_footer() functions. For individual custom content type “entries” (as we’ll call them) it will work as long as the custom content type (or custom post type more precisely) is set up in the standard way, so that WordPress will recognize that it needs to add all the usual meta boxes to it. Basically, it will work in a standard setup.
Where does the Head Code output?
Wherever wp_head() is located in your theme.
Where does the Body Start Code output?
Immediately after the opening body tag. Note: other plugins can be made to do the same thing and one of them has to insert before the other, so other plugins could theoretically insert code before AddFunc Head & Footer Code’s Body Start Code.
Where does the Footer Code output?
Wherever wp_footer() is located in your theme.
Will AddFunc Head & Footer Code work if there is no `wp_head()` or `wp_footer()` in my theme?
Wherever one of those functions is missing, your code will not be output there. But omitting one of them does not stop the other ones from working. AddFunc Head & Footer Code will also save your code regardless. It just can’t output your code without the presence of those functions in the theme.
Does AddFunc have a website?
Yes. addfunc.com
Changelog
2.5
22 Apr 2026
- Fixes page specific fields by removing sanitization. Adds notice to warn users of security resks.
2.4
28 Mar 2026
- Fixes vulnerability: (Thanks to Muhammad Yudha – DJ / Wordfence) “Fix CVE-2026-2305: register_meta on init and sanitize meta”
2.3
23 May 2019
- Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON. (I think I actually got it this time.)
2.2
23 Apr 2019
- Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON. Edit: not fixed, just a different error.
2.1
28 Nov 2018
- Removes the metabox from post types which are not public.
2
19 Sep 2018
- Adds… drumroll please… Body Start Code!
- Insert code immediately after the opening
bodytag! - Fields for individual page/post code as well as site-wide code.
- Optionally replace site-wide code with individual page/post code.
- All behaves the same as head code and footer code, except for priority (no priority setting).
- Note: There is no standard for opening
bodytag code in WordPress yet (contact me if I’m wrong). If there ever is, AddFunc Head & Footer Code may change so as to conform to the standard. We don’t think this will effect performance in anyway, but if it does, we will let you know through this change log. If necessary, we may even leave this feature in place along with the new standardized method.
- Insert code immediately after the opening
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best AddFunc Head & Footer Code alternatives
All add to head plugins →| Rank | Plugin | Active installs |
|---|---|---|
| 2 |
|
60+ |
| 3 |
|
10+ |
FAQ
AddFunc Head & Footer Code: quick answers
Straight answers, pulled from live WordPress.org data.
Live data from WordPress.org · checked Sep 27, 2026
Is AddFunc Head & Footer Code free?
Yes. AddFunc Head & Footer Code is free to download and use from the official WordPress.org plugin directory.
Is AddFunc Head & Footer Code safe to use in 2026?
AddFunc Head & Footer Code is a solid plugin choice in 2026, with a few things worth checking first. It runs on 20K+ sites, is rated 5/5 and was last updated 5 months ago, and scores 68/100 on our health check.
How many websites use AddFunc Head & Footer Code?
AddFunc Head & Footer Code is active on 20K+ WordPress websites and has been downloaded 265,538 times since it launched in December 2014. It was downloaded 1,517 times in the last 30 days.
Does AddFunc Head & Footer Code work with WordPress 7.1?
AddFunc Head & Footer Code is officially tested up to WordPress 6.9.9, while the latest release is 7.1.2. It may still work, but try it on a staging site first.
When was AddFunc Head & Footer Code last updated?
The latest version, 2.5, was released on April 22, 2026 (5 months ago).
Who makes AddFunc Head & Footer Code?
AddFunc Head & Footer Code is developed and maintained by AddFunc.
What are the best alternatives to AddFunc Head & Footer Code?
The most popular alternatives to AddFunc Head & Footer Code are GTM Code Visibility (60+ installs) and GA Code Visibility (10+ installs).
Powered by PageForge
Want thousands of pages that rank like these? Build them in an afternoon.
This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.
- CSV, Google Sheets & API data sources
- AI content, schema & internal links per page
- Works with Elementor, Gutenberg, Yoast & Rank Math
- Free on WordPress.org — no credit card

