🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts icon
Actively maintained Tested with WP 7.1 #714 most installed plugin #3 in code-snippets

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

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

Active installs50K+50K+ tier
Downloads · 30d72.7K▲ +39.4% vs prev. 30d
Rating4.5/5221 reviews
Health score93/100Excellent
All-time downloads2MSince Nov 2012
Support resolved4 / 4100% in last 2 months
RequiresWP 5.6PHP 7.4+
Overall rank#714of 77,339 plugins
Our verdict

Safe pick

Yes — Woody Code Snippets is a safe, well-maintained plugin to use in 2026. It runs on 50K+ sites, is rated 4.5/5 and was last updated 1 week ago, and scores 93/100 on our health check.

  • Proven at scale on 50K+ active sites
  • Loved by users — 4.5/5 from 221 reviews
  • Actively developed — last update 1 week ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 39.4% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

3.5K7K10.5KSep 4Oct 18Dec 2
Yesterday720
Daily average (1y)1,012
Peak day13,952Nov 26, 2026
Last 12 months368.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Woody Code Snippets stands today
Overall popularity #714 of 77,339 WordPress.org plugins Top 0.92%
50K+ installs tier 258 of 321
Next tier: 100K+ installs
Code-snippets #3 of 17 plugins → Custom css #7 of 63 plugins → Header footer #2 of 11 plugins → insert PHP #2 of 2 plugins → Php #6 of 157 plugins →

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
code-snippets #4 2,394 Best code-snippets plugins →
custom css #19 10,000 Best custom css plugins →
header footer #5 3,674 Best header footer plugins →
insert PHP #2 3,345 Best insert PHP plugins →
php #1 10,000 Best php plugins →

Version adoption

Share of active sites per release.

  • 2.732.4%
  • 2.827.1%
  • 2.413.9%
  • 2.511.4%
  • 1.35.5%
  • Other9.8%

Rating breakdown

★★★★★★★★★★ 4.5 from 221 reviews

  • 5★82.8%
  • 4★4.5%
  • 3★2.3%
  • 2★1.4%
  • 1★9.0%

About Woody Code Snippets

From the official readme · v2.8.1

Description

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
  • Reuse scripts and content across pages using shortcodes
  • Control where code runs using placement rules and conditions
  • Enable, disable, or roll back snippets without breaking your site

Whether you are building client sites, running marketing experiments, or maintaining your own project, Woody gives you control without unnecessary complexity.

How It Works

Woody lets you create code snippets and control where and when they run, all from the WordPress admin.

Example #1

Create a JavaScript snippet and add your analytics or tracking code.
Place it in the site header and add a condition to exclude administrators so your own visits are not tracked.

Example #2

Create a text snippet with reusable content or a shortcode.
Add conditions to show it only to logged-in users, then insert it anywhere using the snippet shortcode or automatic placement rules.

This makes it easy to manage repeated logic and content without editing theme files.

Who Should Use Woody Code Snippets

Woody is designed for:

  • Developers who want a structured way to manage custom code
  • Marketers adding analytics, ads, and tracking scripts
  • Solopreneurs who want flexibility without editing theme files
  • Agencies managing multiple sites and shared snippets

If you regularly need to insert code into WordPress, Woody fits naturally into your workflow.

Supported Snippet Types

Woody supports multiple snippet types, so you can manage all custom code in one place. You can create:

  • PHP snippets for functions, hooks, classes, and global variables
  • JavaScript snippets for analytics, integrations, and interactive features
  • CSS snippets to add custom styles without editing theme files
  • HTML snippets for markup and layout elements
  • Text snippets using the WordPress editor for reusable content
  • Ad snippets for ads and banners
  • Universal snippets that combine PHP, HTML, CSS, and JavaScript

Why do you need this plugin?

  • Insert Google AdSense Ads, Amazon Native Shopping Contextual Ads, Yandex Direct Ads, Media.net on your website.
  • Insert Google Analytic Tracking code, Yandex Metrika Tracking Code, Yandex Counter to Header, Footer.
  • Insert PHP Code Snippets and execute on your website. Register PHP functions, classes, global variables everywhere.
  • Insert Social media widgets, add any external resources widgets.
  • Insert Facebook Pixels, Facebook Scripts, Facebook og:image Tag, Google Conversion Pixels, Vk Pixels.

Header and Footer Code Management

Woody works as a full header and footer code manager.

You can insert snippets:
– Into the site header before the closing tag
– Into the site footer before the closing tag

Common examples include analytics scripts, tracking pixels, verification tags, and global JavaScript or CSS.

Advanced Placement Options

Beyond headers and footers, Woody lets you insert snippets into specific locations.

You can place code:

  • Before or after post or page content
  • Before or after a specific paragraph
  • Before or after a post
  • Inside archives, categories, and taxonomy pages
  • Between posts on archive pages

WooCommerce Pages

Woody supports automatic snippet placement on WooCommerce pages.

You can insert snippets:

  • Before or after the product list
  • Before or after a single product
  • Before or after the single product summary
  • After the product title, price, or excerpt

Common use cases include conversion tracking, promotional banners, custom JavaScript, and trust notices.

Shortcodes and Reusable Content

Woody supports shortcodes so you can insert snippets exactly where you need them. You can place snippets inside posts, pages, widgets, and page builders.

With Pro, you can define custom shortcode names that are readable and portable across sites.

Conditional Logic for Code Snippets

Woody allows you to control when a snippet is displayed.

[FREE] Available in the free version:
– User role and registration date
– Page, post type, or taxonomy
– Referrer or cookie value

[PRO] Advanced conditions available in Pro:
– Device type, browser, and operating system
– JavaScript availability or ad blocker detection
– User country, visit depth, time of day, and total visits

Conditions can be combined using AND and OR logic.

Unlock advanced conditions with Woody Pro.

Snippet Management and Organization

Woody includes features to keep snippets organized and easy to manage.

You can:
– Enable or disable snippets instantly
– Control execution order using priorities
– Tag and clone snippets
– Import and export snippets between sites

Code Revisions and Rollback [PRO]

With Pro, Woody automatically saves snippet revisions. You can view previous versions, compare changes, and restore earlier revisions if something goes wrong.

This adds an extra layer of safety when working with custom code.

Cloud Templates and Sync [PRO]

Woody Pro includes cloud-based snippet templates.

You can save snippets as templates and reuse them across multiple sites, which is especially useful for agencies and developers managing repeated setups.

Settings and Developer Options

Woody includes advanced settings for fine-grained control.

You can:

  • Preserve HTML entities without automatic conversion
  • Execute shortcodes inside snippets
  • Enable error email notifications
  • Automatically activate snippets on save
  • Fully remove plugin data on uninstall

Code Editor

The built-in editor includes:
– Syntax highlighting and line numbers
– Configurable indentation and tab size
– Optional line wrapping
– Automatic bracket and quote closing
– Highlighting of matching variables and functions

Use This Plugin Responsibly

Woody allows you to run custom PHP, JavaScript, and CSS on your site. Always make sure you understand the code you add. Using unverified or outdated scripts may affect site security or stability. On multisite installations, only trusted administrators should have access to snippet creation.

Woody includes safeguards such as snippet disabling, revisions, and error notifications, but it cannot validate third-party code you choose to run.

Support

Need help? Open a new thread in the WordPress support forum, and we will be happy to assist.

Documentation

Learn how to make the most of Woody with our detailed and user-friendly documentation.

Woody is backed by Themeisle, trusted by over 1 million WordPress users worldwide.

Installation

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the PHP Snippets -> Add snippet, to create a new snippet

Changelog

Version 2.8.1 (2026-11-25)

  • Updated dependencies

Version 2.8.0 (2026-11-25)

  • Added AI abilities to trash and restore snippets, restore revisions, read the available locations and condition options, and read the last error of a snippet.
  • Added support for CSS and JS snippets in the AI ability that creates and updates snippets.
  • Added structured display conditions, tags, priority and list filters to the AI abilities.
  • Added a Status switch to the Publish box of the snippet editor.
  • Fixed a deactivated snippet being activated again on every Update when Auto-activate New Snippets is on.
  • Fixed generated CSS/JS files and cached data not being cleaned up when a snippet is trashed or deleted outside the admin screens.
  • Added the list of countries to the condition options that the AI abilities read (needs the premium plugin).
  • Fixed the generated CSS/JS folder, three notice options and the Snippets Library cache being left behind after a complete uninstall.
  • Fixed a Registration Date condition with Between and absolute dates not using the selected dates.
  • Fixed an error in a universal shortcode snippet breaking the whole page.
  • Fixed fatal errors being recorded for the wrong snippet, or not at all, when a snippet runs inside another one or as a shortcode.
  • Fixed a snippet whose code is exactly 0 being treated as empty.
  • Fixed a blank conditions value removing the display conditions of a snippet through the AI abilities.
  • Fixed status switches, the priority field and Snippets Library buttons getting stuck after a failed request.
  • Fixed settings switches such as Delete All Data on Uninstall showing as on while the option was off on a new install.
  • Fixed the AI abilities that create, trash and restore snippets failing on sites with plain permalinks or index.php in their REST URLs.
  • Improved the layout of the display conditions, the Snippets Library, the snippet type badges, the settings page and the Woody block.
  • Fixed the Viewing depth condition never matching with the Between operator.
  • Fixed Black Friday warning when default promotion data was missing.
  • Fixed a request from a logged-out visitor being able to stop a snippet from running for that request.
  • Fixed the Watch button of the Snippets Library showing a tutorial title as HTML.
  • Limited the notices, emails and stored records that a repeating snippet error can create, and removed error notices once the snippet code changes.
  • Limited the labels that the AI abilities return to short plain text.
  • Fixed the AI abilities dropping backslashes from descriptions and tags, and saving number conditions that never matched.
  • Changed the AI ability that saves snippets to refuse more than one condition group, because only the last group was applied.
  • Updated dependencies

Version 2.7.12 (2026-11-13)

  • Enhanced security

Version 2.7.11 (2026-11-09)

  • Fixed site crash when URL contains array-style parameters
  • Enhanced security
  • Updated dependencies

Version 2.7.10 (2026-10-23)

  • Fixed Universal snippets with strict_types declarations crashing pages
  • Set PHP 7.4 as the minimum version required
  • Updated dependencies

Version 2.7.9 (2026-10-05)

  • Fixed a fatal error when activating legacy Premium versions.
  • Fixed repeated PHP and Universal shortcodes breaking pages after function declarations.
  • Fixed snippet previews and inactive saves running code before activation.
  • Updated dependencies

Version 2.7.8 (2026-09-29)

  • Updated dependencies
  • Added AI agent support: let AI assistants read and change your Woody code snippets and settings.

Version 2.7.7 (2026-09-14)

  • Improved the plugins reliability with expanded automated testing
  • Fixed fatal PHP error details missing from the Safe Mode screen for administrators.
  • Fixed PHP shortcodes crashing pages when a stored snippet has invalid PHP.
  • Improved the Woody Snippets block setup when no snippets are available.
  • Fixed PHP shortcodes that stopped page indexing after a snippet error.
  • Fixed Safe Mode to stop all shortcode snippets for administrators.
  • Fixed PHP shortcodes that could crash pages after a snippet runtime error.
  • Fixed snippet saves that crashed when a function name was already in use.
  • Fixed frontend pages stopping when a PHP shortcode snippet has a runtime error.

Version 2.7.6 (2026-07-22)

  • Fixed a PHP warning that could appear in server logs when the plugin checked incoming REST API requests.
  • Fixed an issue where a snippet error message could be shown to site visitors instead of only to administrators.
  • Updated dependencies

Version 2.7.5 (2026-05-15)

  • Improved compatibility with PHP 8.1
  • Added display of actual PHP error message on the snippet error splash page

Version 2.7.4 (2026-04-27)

  • Fixed error caused by dependencies

Version 2.7.3 (2026-04-23)

  • Added an option to disable the Active Snippets notice from the menu
  • Fixed issue with tags area is not visible unless you enable/disable it from Screen Options
  • Fixed issue with text snippets paragraph formatting when rendered via shortcode
  • Fixed issue where Tags and Custom shortcode names are not imported when importing snippets
  • Enhanced security
  • Updated dependencies

Version 2.7.2 (2026-01-27)

  • This release focuses on improving the security and robustness of snippet type handling in the codebase.

Version 2.7.1 (2026-01-21)

  • Added a compatibility check for the Woody Pro version during activation to prevent fatal errors.

Version 2.7.0 (2026-01-19)

New Features

  • Export and clone functionality now available in free version
  • Active snippets menu item for better snippet management
  • New feature to receive emails during fatal error caused by snippets
  • New Improved Plugin UI.
  • Non-premium snippets can now be accessed via API
  • Use IPHub as Geolocation Tool. [PRO]

Enhancements

  • Improved PHP code validation before saving
  • Better Location terminology for improved clarity
  • Added save hotkey support
  • Enhanced snippet labels in library for easier identification
  • Improved Add Snippet button UI for better user experience
  • Updated license management system (SDK-based approach)

Bug Fixes

  • Fixed translation and deprecation errors
  • Fixed safe mode functionality
  • Fixed location number field not appearing with certain conditions
  • Fixed inactive snippets not being exported
  • Fixed RTL (right-to-left) issues in toggle controls
  • Fixed sync modal not appearing for advert type snippets
  • Fixed license message display issues
  • Fixed critical error with export logs tool permission checking
  • Fixed trashing posts from removing associated metadata

Version 2.6.1 (2025-10-21)

  • fix error with missing asset files

Version 2.6.0 (2025-10-20)

Woody Snippets plugin has been acquired by Themeisle 🎉
We’re happy to announce that Themeisle is now the new owner of Woody Snippets. This acquisition will help ensure the plugin’s continued development, better support, and exciting new updates in the future.

Your existing setup will continue to work as usual — no action is required on your part.

2.5.1

  • Fixed: [insert_php] shortcodes are no longer supported due to the security risk to your site.
  • Fixed: Compatibility with WordPress 6.5
  • Fixed: Compatibility with php 8.3

2.5.0

  • Fixed: Compatibility with WordPress 6.4
  • Fixed: Compatibility with php 8.2

2.4.10

  • Minor fixes
  • New API for Snippets Library

Full changelog on WordPress.org →

Screenshots

Manage all snippets from one dashboard
Manage all snippets from one dashboard
Set conditions to control when snippets load
Set conditions to control when snippets load
Choose the exact location where the code runs
Choose the exact location where the code runs
Catch code errors before they affect your site
Catch code errors before they affect your site
Insert snippets directly inside the editor
Insert snippets directly inside the editor
Compare changes and restore previous versions
Compare changes and restore previous versions
Use custom shortcode names for reusing snippets
Use custom shortcode names for reusing snippets

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.

Active installs badge Rating badge Health score badge

Best Woody Code Snippets alternatives

All code-snippets plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager WPCode Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code… by Syed Balkhi 3M+ ★★★★★★★★★★ 4.9 (1.9K) 3 weeks ago 94
2 FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager FluentSnippets Fast, file-based code snippets plugin. Insert header & footer scripts and add PHP, CSS, JS… by WPManageNinja 60K+ ★★★★★★★★★★ 4.7 (80) 1 month ago 90
4 WPIDE – File Manager & Code Editor WPIDE – File Manager & Code Editor Manage WordPress files, edit code and add PHP, CSS, JavaScript and HTML snippets from your… by XplodedThemes 40K+ ★★★★★★★★★★ 4.8 (308) 1 week ago 79
5 WP Coder – Insert & Manage Code Snippets WP Coder – Insert & Manage Code Snippets Add code snippets, header & footer scripts and custom HTML, CSS, JS & PHP — site-wide or by… by Wow-Company 10K+ ★★★★★★★★★★ 4.9 (32) 2 weeks ago 90
6 Code Manager Code Manager Write, test, and organize PHP, JavaScript, CSS, and HTML code blocks from the WordPress… by Passionate Programmer Peter 500+ ★★★★★★★★★★ 4.9 (9) 2 months ago 78
7 Dessky Snippets Dessky Snippets Add your custom PHP code snippet from WordPress admin. by dessky 400+ ★★★★★★★★★★ 5 (1) 1 month ago 73
8 Code Block – share beautiful code snippets readers can copy Code Block – share beautiful code snippets readers can copy Create syntax-highlighted, copy-ready code snippets in Gutenberg with responsive layouts… by bPlugins 200+ ★★★★★★★★★★ No reviews 22 hours ago 69
9 Custom Code Custom Code Code snippets and AI code for WordPress: 100+ ready snippets, PHP, CSS, JS and HTML… by Varni Infotech 100+ ★★★★★★★★★★ 4 (4) 3 weeks ago 72
10 Blocksolid Snippets Blocksolid Snippets Snippets functionality with a custom post type, shortcode and optional Gutenberg block. by Peripatus Web Design 20+ ★★★★★★★★★★ 5 (1) 4 months ago 64
11 Security Checker for Themes Security Checker for Themes Analyze your WordPress theme's PHP code for issues, security vulnerabilities, and adherence… by Harpalsinh Parmar 10+ ★★★★★★★★★★ 5 (1) 6 months ago 52

FAQ

Woody Code Snippets: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Woody Code Snippets free?

Yes. Woody Code Snippets is free to download and use from the official WordPress.org plugin directory.

Is Woody Code Snippets safe to use in 2026?

Yes — Woody Code Snippets is a safe, well-maintained plugin to use in 2026. It runs on 50K+ sites, is rated 4.5/5 and was last updated 1 week ago, and scores 93/100 on our health check.

How many websites use Woody Code Snippets?

Woody Code Snippets is active on 50K+ WordPress websites and has been downloaded 2,003,201 times since it launched in November 2012. It was downloaded 72,671 times in the last 30 days.

Does Woody Code Snippets work with WordPress 7.1?

Yes. The developer has tested Woody Code Snippets up to WordPress 7.1.5, the latest release. It requires WordPress 5.6 or newer.

What PHP version does Woody Code Snippets need?

Woody Code Snippets requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Woody Code Snippets last updated?

The latest version, 2.8.1, was released on November 25, 2026 (1 week ago).

Who makes Woody Code Snippets?

Woody Code Snippets is developed and maintained by Themeisle.

What are the best alternatives to Woody Code Snippets?

The most popular alternatives to Woody Code Snippets are WPCode (3M+ installs), FluentSnippets (60K+ installs) and WPIDE (40K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open