Type to search.

#711 by installs

Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts

by ThemeisleVersion 2.7.10

Insert PHP, JavaScript, CSS, HTML, ads & tracking code into WordPress headers, footers, pages & content with conditional logic — no theme editing.

Active installs
50,000+
#711 of 1,000
Downloads, all time
1.9M
1,929,612
Downloads, 30 days
53.1K
17K in the last 7
Rating
4.5 / 5
221 reviews
Last updated
8 days ago
Oct 23, 2026
Version
2.7.10
31 releases

Upkeep and compatibility

Last updatedOctober 23, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress5.6 or newer
Needs PHP7.4 or newer
First publishedNovember 12, 2012
Support, last two months3 of 3 threads resolved (100%)

Reviews

4.5 / 5 from 221 reviews

Reviews by star rating
5 stars183
4 stars10
3 stars5
2 stars3
1 star20

Downloads, last 30 days

Low 289 a dayHigh 11.7K a day

What the author says it does

Woody Code Snippets is a WordPress plugin that helps you insert code into your site without editing theme files.

Many WordPress users still add PHP, JavaScript, CSS, tracking pixels, or ad scripts directly into functions.php, header.php, or footer.php. This approach breaks easily when themes update and becomes hard to manage as your site grows.

Woody solves this by giving you a centralized code snippet manager where you can safely add header scripts, footer scripts, PHP snippets, custom CSS, JavaScript, and HTML from the WordPress admin.

You can use Woody as a header and footer code manager, a PHP snippet plugin, or a way to reuse content and scripts across your site using shortcodes or automatic insertion.

Each snippet can be enabled or disabled instantly, placed in specific locations like before content or after paragraphs, and shown only when certain conditions are met.

Quick Links

📘 Documentation – Complete setup and configuration guide

💬 Support Forum – Community help and expert support

⭐ Go Pro – Unlock advanced features and priority support

What Problems Does Woody Solve?

Woody is built for real WordPress workflows. It helps you:

  • Insert code into headers and footers without editing theme files
  • Add analytics scripts, tracking pixels, and ad code safely
  • Manage PHP snippets without touching functions.php

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

How to pass attributes to a snippet using a shortcode?

Add a new attribute “simple” to the shortcode [wbcr_php_snippet id=”xx” simple=”example”].

The attribute “simple” is available in the snippet as the $simple variable. The attribute name can contain Latin letters and lowercase digits. You can also use underscore.

The snippet code executed with an error and I cannot change it, what should I do?

Don’t worry. Mistakes can happen, even with experienced users. Woody includes a Safe Mode that temporarily disables snippet execution so you can fix the issue.

  • Go to the safe mode by this link: http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode
  • Edit the snippet in which you made a mistake;
How to pass page content to a snippet?

Pretty often we’d like to hide a part of a text or a form on particular pages and set up display conditions. You need to wrap the content you’d like to pass to a snippet with shortcodes [wbcr_php_snippet id=”xx” simple=”example”]page content[/wbcr_php_snippet]. Page content in a snippet is located in the $content variable.

Does plugin support Gutenberg editor?

Yes, it does. You can add there special blocks from our plugin.

I used the old plugin Insert php 1.3.0. What should I expect in 2.x.x version?

The old version of Insert php 1.3.0 worked this way: you wrapped PHP code with shortcodes [insert_php]php code[/insert_php]. Starting from version 2.x.x and higher, you need to create special snippets to place PHP code. Use a snippet shortcode [wbcr_php_snippetid=”xx”] instead of shortcodes [insert_php][/insert_php] to execute PHP code on pages.

Is there any plugin documentation?

You can find the detailed documentation in here.

Screenshots

First 4 of 7, 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

#101 by installs

Simple Custom CSS and JS

by SilkyPress

Easily add Custom CSS or JS to your website with an awesome editor.

Installs
600,000+
Rating
4.4 (104)
Updated
23 days 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

#268 by installs

PHP Compatibility Checker

by WP Engine

Make sure your plugins and themes are compatible with newer PHP versions.

Installs
200,000+
Rating
2.7 (131)
Updated
3 months 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.