<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Why not just make a plugin for this to extend the theme?<br>
    <br>
    On 4/28/2011 10:39 AM, Philip Walton wrote:
    <blockquote cite="mid:4DB98A44.6000509@philipwalton.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Out of curiosity, why are you wanting them to be able to execute
      PHP? I would think that someone savvy enough to hand code PHP into
      a textarea would be savvy enough to add it to the functions.php.<br>
      <br>
      Or perhaps, if you're worried about upgrades overwriting such
      modifications, you could make your own custom-functions.php file
      that isn't controlled by svn. (Actually, that still may get
      deleted in an upgrade, someone else would have to confirm.)<br>
      <br>
      <br>
      On 4/28/11 4:58 AM, Rahul Bansal wrote:
      <blockquote
        cite="mid:BANLkTinrq3DT72cHZsAj_zng9R-R2Djz7Q@mail.gmail.com"
        type="cite">
        <pre wrap="">Hi All,

In next theme, we are preparing for open-source release, we want to provide
a "hooks-editor" interface.

Like many pro themes, we have added a lot of custom action &amp; filter hooks in
our theme code base.
In admin area, we plan to provide list of hooks, each coupled with a
textarea, which can be used to post php-html codes in them (like
action-handlers)

Now, to "execute" action handlers in textarea, we need to use eval()
function in PHP which is prohibited here.

So what are my alternatives here?

Just a note - we do not want to provide custom.css and/or
custom-functions.php files (like thesis provides) as they are hard to
maintain in multisite environment.
Also child-theme support is not yet present on repo so creating child themes
with style.css &amp; function.php (to declare action handlers) is not feasible
either at this stage.

Please suggest something.

Thanks,
-Rahul
--
Rahul Bansal | Founder &amp; CEO | rtCamp Solutions Pvt. Ltd.
Skype: rahul286 | Twitter: @rahul286 | Web: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://rtcamp.com/">http://rtcamp.com/</a>

</pre>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
    </blockquote>
  </body>
</html>