Insert Headers And Footers icon
Analytics & Tracking

Insert Headers And Footers

Include inline javascript, stylesheets, CSS code or anything you want in Header and Footer areas of your WordPress with ease.

  • By Adnan
  • v3.2.0
  • Updated

Overview

Insert Headers And Footers describes itself as: “Include inline javascript, stylesheets, CSS code or anything you want in Header and Footer areas of your WordPress with ease.”

It is active on 200,000+ WordPress sites and rated 5.0 out of 5 by 135 users on WordPress.org. Developers can extend it through 6 actions and 22 filters, listed below.

We haven't published a hands-on review of Insert Headers And Footers yet. Want one, or need help with it? Send us a request.

How to install Insert Headers And Footers

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Insert Headers And Footers” and pick the one by Adnan.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install wp-headers-and-footers --activate

Requirements: WordPress 5.0+ · PHP 7.0.0+ · tested up to WordPress 7.1.4

Hooks & customisation

Insert Headers And Footers 3.2.0 fires 6 actions and 22 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

wp-headers-and-footers — top hooks
// Filter to add or exclude scripts to and from the frontend body.
apply_filters( 'wp_hnf_body_script', true );

// Filter to add or exclude scripts to and from the frontend footer.
apply_filters( 'wp_hnf_footer_script', true );

// Filter to add or exclude scripts to and from the frontend header.
apply_filters( 'wp_hnf_header_script', true );

// Filter allowed SDK opt-out setting keys for AJAX toggles.
apply_filters( 'wpb_sdk_allowed_opt_out_settings', $allowed, $this->slug );

// Filter allowed page slugs for post-opt-in redirect.
apply_filters( 'wpb_sdk_allowed_redirect_page_slugs', $allowed, $slug, $module );

// Filter telemetry API base URL for a product.
apply_filters( 'wpb_sdk_api_endpoint', $endpoint, $slug );

Browse all 28 hooks with examples →

Need Insert Headers And Footers customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Adnan. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Analytics & Tracking

See all →

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful…

5+ million installs 91 hooks

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow…

2+ million installs Reviewed 186 hooks
CookieYes icon

CookieYes

3,238

Google-certified CMP: cookie banner, cookie notice and cookie consent for GDPR/CCPA compliance, with cookie blocker, cookie scanner and consent log.

1+ million installs Reviewed 82 hooks

Publish your cookie banner or notice in minutes. Automatically scan cookies, and create policies to align with GDPR, CCPA, and…

1+ million installs 184 hooks