[wp-hackers] Modifying admin forms via plugins

Jason goldsmith unteins at gmail.com
Wed Jun 23 14:33:58 UTC 2004


Owen - You can't use the DOM because plugins are disabled in
plugins.php. If plugins weren't then enabling a borked plugin would
require you going into the database and disabling it, or removing the
files from the plugins folder to unbork the plugin interface. So,
currently there is no way to do this in WordPress.

Stephen - I think the framework is cool, I'd love to use it, but I
won't be able to because it modifies WordPress files. I refuse to do
that for any plugin and there are two reasons why. 1) When WordPress
upgrades, my plugins would all break because the modified files would
be overwritten. That's no good. 2) As you have pointed out, I can't
include the framework with my plugin because my copy might be old, so
it might overwrite a newer one. This means I have to link to the
framework and explain to the end user that they should go download and
install some other piece of software to make the plugins work.

I think that something like the framework should be included with
WordPress. If Matt is working on one already, you two should talk and
work together so that 1.3 has a solid Plugin API and Framework so that
plugin developers can do super cool things easily. Then I could use
the plugin framework without fear of it breaking in a future release
or even worse, without fear of you getting too busy to update it for a
future release and forcing all of the plugin developers to scramble
and bicker over which unofficial update should become the official
update so that everyone who is using the framework can upgrade to
WordPress 2.0 or whatever.

Btw, I think the plugin framework could easily define standard widgets
and a mechanism for tying them to options (it wouldn't even be
impossible to tie them to db backed or file backed options)  and then
providing a way to call custom defined elements. There's no reason for
each plugin developer to reinvent a way in code to tie a checkbox to
true or false and generate the checkbox and label in xhtml, but
definitely there are times when that won't be enough (my plugin Live
Press will make use of drop down lists that have to dynamically update
each other)



More information about the hackers mailing list