Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditional logic, insert ads pixel code, and more.
As of April 2026, WPCode is a WordPress css plugin with 3.0M+ active installations and a 4.9/5 rating from 1,775 reviews. It has been downloaded 84M+ times in total. Requires WordPress 5.0+ and PHP 7.0+. Available on WordPress.org since 2012. Actively maintained — updated within the last month. Downloads are down 20% this week. Support resolution rate: 100%. Top alternative: Code Snippets.
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…
WPCode made it easy for me to add code without touching theme files. Very simple to use and worked fine for most things. Just felt a bit confused in some parts at first—4 star.
This is a very good plugin.
Easy to use and great for adding extra code to the website.
Easy to install, simple to use, and it works. Great plugin!
Used it to “mask” my email address on my website. Works great!
I love this plugin. I use it for schema and adding tracking codes. It’s a big time saver. Super appreciative.
| WordPress | 5.0+ requiredTested up to 6.9.4 |
| PHP | 7.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.