WordPress.org

Plugin Directory

PHP Code for posts

Add PHP code to your WordPress posts, pages, custom post types and even sidebars using shortcodes

1.0

  • Initial Release
  • No changes

1.1

  • Added missing functionality for delete single snippet
  • Tested for WP 3.6
  • Added class functions for getting and setting shared variables (get_variable and set_variable)

1.1.1

  • added parameters for snippits

1.1.2

  • Fix for php warning handle_extra_shortcode (thanks to paul_martin)

1.1.3

  • Fix for the table not being created in a multi-site installation (thanks to dondela and mediagent)
  • Fix for the parameter variables not splitting correctly because of html entity encoding (thanks to eoh1)

1.2.0

  • Ajax saving for updating code snippets (ajax save for initial add still to be implemented) (request by eneasgesing)
  • Richer snippet editor using Codemirror (request by eneasgesing)

1.3.0

  • Confirmed support for latest version of WP (4.2.1) just in case you were wondering

2.0.0

  • Refreshed interface
  • Custom shortcode name
  • Translation support

2.0.1

  • Fixed issue in options class with incompatibility with array accessing a function return i.e. foo()['bar']

2.0.2

  • Based on support queries, I have added in an option to disable ajax saving for snippets

2.0.3

  • Based on feedback, I have removed an anonymous function

2.0.4

  • Fixed issue with parameters not passing through correctly

2.0.5

  • Removed ? : shorthand ifs

2.0.6

  • Fixed issue with compatibility with PHP 5.2

2.0.7

  • Fixed another issue with compatibility with PHP 5.2

2.0.8

  • Fixed the stripping of backslashes from code

2.0.9

  • Fixed another issue with compatibility with PHP 5.2 - seriously, why is anyone using it?!

2.0.10

  • More translation support

2.0.11

  • Notice Error Fix
  • Parameter Variable Extraction

2.1.0

  • Multisite! Improved multisite support including shared options and snippets
  • Confirmed support for 4.5.1

2.1.1

  • Fixed a massive issue with non-multisites not working (sorry!)

2.1.2

  • Fixed a massive issue with non-multisites not working (sorry!)

2.1.3

  • You asked for an export/import, I made it happen

2.1.3.1

  • removed short array syntax

Requires: 3.3.1 or higher
Compatible up to: 4.6.0
Last Updated: 1 month ago
Active Installs: 40,000+

Ratings

4.7 out of 5 stars

Support

1 of 6 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,2,2
100,3,3
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
86,7,6
100,1,1
100,1,1
100,1,1
100,3,3
100,1,1
50,2,1
100,1,1
67,3,2
50,2,1
50,2,1 100,1,1 100,1,1 100,1,1 0,1,0 0,1,0 50,2,1 100,1,1
0,1,0
100,1,1
100,1,1