<?php
// Add default plugins filters
addFilter('content', 'evalPHP');
/**
* Evaluate a string as PHP code
* @param string $str String with PHP code.
* @return mixed
*/
function evalPHP($str) {
return preg_replace_callback('/\[php\](.*?)\[\/php\]/ms','obEval',$str);
}