PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Add PHP
  4. Insert PHP Code Snippet
Insert PHP Code Snippet icon

Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

By f1logic·Add PHP·Free
4.9(698 reviews)
·100K+ active installs·Updated 2 weeks ago
DownloadVisit HomepageCompare

As of April 2026, Insert PHP Code Snippet is a WordPress Add PHP plugin with 100K+ active installations and a 4.9/5 rating from 698 reviews. It has been downloaded 1.6M+ times in total. Requires WordPress false+ and PHP false+. Available on WordPress.org since 2013. Actively maintained — updated within the last month. Downloads are down 24% this week.

4.9/5698 reviews
100K+active installs
1.6M+total downloads
13 yearssince 2013

Overview

A quicklook into Insert PHP Code Snippet

★ Convert PHP snippets to shortcodes
★ Insert PHP code easily using shortcode
★ Support for PHP snippet shortcodes in widgets
★ Dropdown menu in TinyMCE editor to pick snippet shortcodes easily

Features in Detail

Insert PHP Code Snippet allows you to create shortcodes corresponding to PHP code snippets. You can create a shortcode corresponding to any random PHP code such as ad codes, login validation etc. and use the same in your posts, pages or widgets.

The shortcodes generated using the plugin are easily available as a dropdown in the standard wordpress content editor as well as in widget settings, thereby giving you ease of integrating your PHP snippets with your posts and pages.

About

Insert PHP Code Snippet is developed and maintained by XYZS…

Read full description on WordPress.org

Screenshots

Ratings & Reviews

4.9698 reviews
5 ★
669
4 ★
10
3 ★
1
2 ★
2
1 ★
16

Recent Reviews

On-Demand Execution seems to throw a json error on line 0
by pavman·2 weeks ago·1 reply

This is a great plugin when you don’t have errors in php. Just don’t re-use functions with the same name on the same page with menus / widgets that use the snippet or it will throw a broken site error.

Minus 1 star on the latest version as when I try to run a snippet on demand I get a json error (but am not using json), regardless of whether or not that code is already being used somewhere else successfully in snipet form.

What’s really cool is you can use a post’s custom fields to control variables in php snippets via:
$var = get_post_meta(#_of_post,'name_of_custom_field',true);

And then $someothervar = $$var to access the custom field’s raw value to make custom variables a snap without having to write an admin interface in the dashboard for custom variables.

Insert PHP Code Snippet saved me
by jweichel·1 month ago

I also use a different php snippet program that suddenly had several of my snippets fail. I loaded this snippet program; and, using the exact same snippet code, it worked fine.

Simple and works well
by chazzo·1 month ago

I wrote some custom code to query an API and display a map of the results. This plugin is a simple and fuss-free way to add this to a specific web page using a shortcode. In due course we’ll probably pay for the version that supports JS as well.

Fantastic
by oelinsfeuer·3 months ago

Love it 🥰

truly first-class
by marcoleon346·4 months ago

It simply does what it is supposed to do. And it does it very well, reliably and easily. That’s how you imagine a helpful plugin to be. Perfect.

Download Trends

Today: 540Yesterday: 672This week: 4KPeriod total: 322K

Compatibility

WordPressfalse+ requiredTested up to 6.9.4
PHPfalse+ required

Version Adoption

v1.4
65.1%
v1.3
33.3%
Other
1.6%

Frequently Asked Questions

Changelog

1.4.5

  • Improved snippet list UI and placement clarity
  • Added usage details for snippets used via shortcode
  • Minor bug fixes
View full changelog on WordPress.org

Contributors

f1logicf1logic
Plugin Info
Version
1.4.5
Last Updated
Mar 16, 2026
WP Requires
false+
Tested Up To
6.9.4
PHP Requires
false+
Active Installs
100K+
Downloads
1.6M+
Added
Sep 16, 2013
Business
Free

Tags

add phpinsert phpinsert php taginsert php codeinsert php snippet

Developer

F
f1logic
15 plugins0.1M+ total installs
View all plugins →

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.