This is my plugin for inserting php code in wordpress. Usually additional code is inserted to functions.php file in theme folder. Add Functions allows you to insert code through admin menu. Code aditor has code highlightning.

Installation

  1. Upload /add-functions/ to your plugins directory
  2. Activate
  3. Open Add Functions administrator menu
  4. Paste your code in editor and click Save

Screenshot

This is part of code from Dofollow in Disqus post.

Changelog

0.2

  • Using eval() to execute code
  • Safety feature to stop executing corrupted code

0.1

  • Code highlighting
  • Code execution

Known Issues

There is <?php in the beging and ?> in the end of the editor. Don’t delete them, they are for correct code highlighting.