Type to search.

#19 by installs

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

by Syed BalkhiVersion 2.4.1

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.

Active installs
3+ million
#19 of 1,000
Downloads, all time
95.4M
95,429,922
Downloads, 30 days
2.4M
871.2K in the last 7
Rating
4.9 / 5
1,915 reviews
Last updated
2 days ago
Oct 29, 2026
Version
2.4.1
80 releases

What WPCode's own page says

Read from wpcode.comon

  • Money-back period mentioned: 14 days

Who it is for

WPCode is perfect for any WordPress site owner as it makes it really easy to extend your site without having to load many plugins for specific features.

Use cases the vendor names

  • Add tracking pixels
  • Add JSON-LD schema
  • Run snippets based on conditions

Features it lists

  • Built-in error handling
  • 600+ free code snippets
  • Smart Conditional Logic
  • Advanced Auto-Insert Locations
  • Global Header & Footer Scripts
  • Safe Error Handling
  • WordPress Code Generators
  • Ecommerce Conversion Pixels
  • Dynamic Content Elements
  • Save Snippets in Cloud

Needs

  • self-hosted WordPress site

A script read this page, and kept only what the page's text backs up. These are the vendor's list prices and its own words, not a deal and not my review. Prices change and can differ by country, so confirm on the vendor's page before you buy.

Upkeep and compatibility

Last updatedOctober 29, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress5.0 or newer
Needs PHP7.0 or newer
First publishedJuly 12, 2012
Support, last two months5 of 7 threads resolved (71%)

Reviews

4.9 / 5 from 1,915 reviews

Reviews by star rating
5 stars1,840
4 stars17
3 stars6
2 stars9
1 star43

Downloads, last 30 days

Low 17.3K a dayHigh 448.8K a day

What the author says it does

Insert Headers & Footers + Full WordPress Code Snippets Plugin

WPCode (formerly known as Insert Headers and Footers by WPBeginner) is the most popular code snippets plugin for WordPress used by over 2 million websites.

We make it easy for you to add code snippets in WordPress without having to edit your theme’s functions.php file.

Our simple insert headers and footers interface allows you to insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site’s header and footer as well other areas of your website. No need to edit your theme files!

Aside from Header and Footer scripts, you can also use WPCode to insert custom PHP code snippets, JavaScript code snippets, CSS code snippets, HTML code snippets, and text snippets with full conditional logic support.

We took the pain out of adding custom code snippets in WordPress and made it easy.

I have been using Insert Headers and Footers and it is such a useful tool. Super helpful and the very best of its kind. Highly recommend

The_Gibble – WordPress user

Quick Overview of WPCode from WPBeginner

Introducing New WPCode Pro

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Can I use WPCode – Insert Headers and Footers to install Google Analytics?

Yes, you can insert your Google Analytics code in the Scripts in Header field.

Can I use WPCode – Insert Headers and Footers for Google AdSense?

Yes, to verify your account or to tag your page for Auto ads, paste the code AdSense gives you, into the Scripts in Header field.

Will I lose my snippets if I change my WordPress theme?

No, the idea behind WPCode – Insert Headers, Footers, and Code Snippets plugin is so you can safely add code snippets.

All code snippets are stored in the WordPress database, independent of the theme upgrades.

Can I switch back to the old version of Insert Headers and Footers?

Yes, if you don’t want the advanced code snippets functionality, then you can switch back to the old Insert Headers and Footers features by simply going to the Settings Menu and clicking on the Headers & Footers mode.

What Type of Code Snippets can I add?

With WPCode, you can add any type of code snippet that you would otherwise add in your theme’s functions.php file or in a site-specific plugin.

This includes custom PHP snippets, JavaScript snippets, HTML snippet, CSS snippets, Text Snippets, Conversion pixels, Tracking scripts, AdSense or other banner ads code, and more.

What are some example plugins WPCode can replace?

WPCode comes with a ready-made code snippets library that allows you to replace several popular plugins including:

  • Disable Comment plugins
  • Disable XML-RPC plugins
  • Disable Rest API plugins
  • Disable Gutenberg plugins
  • Classic Editor plugin
  • Allow SVG File Upload plugins
  • Disable RSS feed plugins
  • Disable Search plugins
  • Disable Automatic Updates plugins
  • Disable Admin Bar plugins

Latest changelog entry

2.4.1

  • New: Opt-in write access for the WordPress Abilities API, so AI tools can manage snippets.

Screenshots

First 4 of 10, from WordPress.org.

Tagged

Plugins that share its tags

#32 by installs

Code Snippets

by Code Snippets Pro

Manage custom WordPress code in one dashboard. Create PHP and HTML snippets, preview code, track snippet totals and reuse code across sites.

Installs
1+ million
Rating
4.7 (510)
Updated
10 days ago

#359 by installs

Simple Custom CSS Plugin

by John Regan

Add Custom CSS to your WordPress site without any hassles.

Installs
100,000+
Rating
4.7 (159)
Updated
20 months ago

#105 by installs

Header Footer Code Manager

by DraftPress Team

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat features.

Installs
600,000+
Rating
4.9 (309)
Updated
4 months ago

#204 by installs

Insert Headers And Footers

by Adnan

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

Installs
200,000+
Rating
5.0 (135)
Updated
12 days ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin.