WordPress.org

Ready to get started?Download WordPress

Plugin Directory

PHP Snippets

Provides an interface for developers to easily add PHP code to posts and widgets via selectable shortcodes.

This plugin allows developers to easily add PHP code to their posts and widgets. All .snippet.php files contained in the configured directory will be executable via a corresponding [shortcode]. For example, a file named my-code.snippet.php can be executed by adding a [my-code] shortcode to your post content. The source directory is configurable: you can put it anywhere on your server that you wish, e.g. you can enhance the security of your code by storing it outside your server's document root.

By keeping all the PHP code in PHP files, you ensure that your WordPress posts and pages remain clean. All available shortcodes are listed when the user clicks a custom TinyMCE button.

See the Project Home Page for more information. This plugin requires PHP 5.2.6 or greater.

This plugin can save you from writing lots of other plugins because you can easily tie into PHP files without having to register your own plugins.

WARNING: this has not been tested on Windows servers. Sorry, but I don't have access to one, so I've been unable to tune the permissions checks.

Tags: , , ,

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-7-21
Downloads: 13,646

Ratings

4 stars
4.8 out of 5 stars

Support

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

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
100,2,2
100,2,2
100,1,1
100,1,1