PHP Execution

The PHP Execution plugin allows embedding php code inside of posts and pages.

Author:Nicolas Zeh (profile at wordpress.org)
WordPress version required:2.5
WordPress version tested:2.8.3
Plugin version:1.0.0
Added to WordPress repository:09-03-2009
Last updated:07-08-2009
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:76
Rated by:5
Plugin URI:http://www.zehnet.de/
Total downloads:62 607
Active installs:3 000+
plugin download
Click to start download

The PHP Execution Plugin is a WordPress plugin which allows users to write php code inside of their posts and pages. Embedded php code will be executed when the post is shown. In doing so, the plugin offers the possibility to utilize dynamic content inside of posts.

In contrast to other plugins with the same aim, this one integrates well with WordPress’ visual editor. So there is no need to turn off the visual editor in order to edit your php code.
Additionally it provides an admin section which lets administrators edit the blog users’ php execution rights easily. The plugin also automatically prevents users with no php execution rights from editing posts or pages of users with these rights. It thus fixes a possible security leak where people without php execution rights can still execute code with editing other users’ posts.

Features:

  • executes php code in your posts and pages (full, excerpts, feeds).
  • integrates well with WordPress’ visual editor. No need to turn it off.
  • write php code in the usual ” syntax in the html view of the editor.
  • admin section to edit the blog users’ php execution rights.
  • plugin automatically prevents users with no php execution rights to edit posts of users with rights to execute php code.

Project was now moved out of beta.

Further information at zehnet.de: PHP Execution Plugin home

Editing PHP code

  • php code can be edited in the html view of the editor.
  • php code is embedded into a post in the same way as you are used to: a php block begins with ”. The short open tag, i.e. ”) somewhere inside a string in your php code block. If you do so, this ending delimeter will be matched and your code will inevitably break apart. So don