[wp-hackers] Custom content in quick edit

Andrew Ozz admin at laptoptips.ca
Wed Nov 19 22:32:14 GMT 2008


Malaiac wrote:
> 2008/11/19 OT <wplists at gmail.com>:
>> I'm trying to add custom content to the quick edit screen, but it seems that
>> the values are grabbed via inline-edit-post.js from the content produced by
>> get_inline_data(). I can't find a suitable hook to add the hidden
>> information needed to add values. Could anyone lead me in the right
>> direction?
> 
> reported 3 weeks ago http://trac.wordpress.org/ticket/7984
> and I have no idea how to could circunvent that without coding a whole new js
> markjaquith just bumped the milestone to 2.8

Unfortunately there's no easy way to handle that automatically. However 
js can easily be overloaded, redeclared, etc. The way to do that here 
would be to copy inlineEditPost.edit(), change it to handle the 
new/custom values and replace the original one by registering the script 
with dependency on inline-edit-post.js so it's always loaded after.


More information about the wp-hackers mailing list