This plugin hasn’t been tested with the latest three major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Eval PHP


With this plugin can added native PHP code within article and blog data. For logged-in user PHP error messages are shown for debugging the PHP code. Each
code block is run like a PHP function. Own functions can be added to the plugin and can be included on other calls. For article writers the execution of
PHP code can be disabled, so the administrator can create different function, that can be used by the writers. Output of the PHP code are included
within the article.


  • inline code on articles / pages
  • function define and include
  • only execution of defined functions
  • any PHP error message is passed to the author
  • disabling PHP error messages
  • execution can be denied by a keyword list


  • PHP 5.3.0 or newer


For inline code you can use:

[evalphp] your code [/evalphp]

For included code:

[evalphp include="your includes"]

The include parameter is optional and can be used on both shortcodes.


  1. Upload the folder to the “/wp-content/plugins/” directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Contributors & Developers

“Eval PHP” is open source software. The following people have contributed to this plugin.


Translate “Eval PHP” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change log


  • first version with the base functions