[wp-trac] [WordPress Trac] #13038: Add action hooks to QuickPress dashboard widget

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 17 19:17:54 UTC 2010


#13038: Add action hooks to QuickPress dashboard widget
----------------------------+-----------------------------------------------
 Reporter:  t31os_          |       Owner:            
     Type:  enhancement     |      Status:  new       
 Priority:  normal          |   Milestone:  Unassigned
Component:  Administration  |     Version:  3.0       
 Severity:  normal          |    Keywords:            
----------------------------+-----------------------------------------------

Comment(by t31os_):

 Add hooks to the widget, or write specific extra fields(like category)
 into the widget?

 Assuming for the moment you're referring to hooks in the widget, i'll have
 to think about how to tackle the tab-indexes, assuming the hook is to
 provide tax index support for fields being added via action hook.

 Right now my thinking is that i need to split the form elements into an
 array, perform the hook after building the array, then loop over the array
 elements(it could have extra field added via hook at this point) and
 output whatever is there. That way the tax indexes can be created as the
 array is iterated over, skipping over any invalid items(if someone had
 hooked on but not supplied the correct type of data).

 Using an array would also mean, if the person hooking onto that array
 wants to move the form elements around, they can pretty much put them in
 any order they want..

 Example:
 {{{
 Title
 Tags
 Content
 Media Buttons
 }}}

 ..simply by re-sorting the array items.

 I'm open to any ideas anyone has for how to approach this, the above is
 just what springs to mind in terms of what the hook could provide.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13038#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list