[wp-hackers] Help understanding the Custom Fields editor

Otto otto at ottodestruct.com
Tue Oct 7 12:03:55 GMT 2008


On Mon, Oct 6, 2008 at 2:51 PM, Casey Bisson <casey.bisson at gmail.com> wrote:
> My jQuery jujitsu my be too weak to understand the answer, but I'm trying to
> create something that works very similarly to the existing Custom Fields
> feature in the post editor. That is, I want ajaxy add, update, delete of the
> fields for data that's part of a plugin I'm writing.
>
> The easiest way, it would seem would be to dissect how the Custom Fields
> feature works and leverage as much of that code as possible. Thing is: I
> can't figure out how it works.

Look closely at wp-admin/js/custom-fields.js and
wp-includes/js/wp-lists.js. The wpList is a generic approach to the
ajax stuff, which is attached to the custom fields.


More information about the wp-hackers mailing list