[wp-trac] [WordPress Trac] #21488: Add Default Callback Functions for add_settings_field()
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 6 16:43:14 UTC 2012
#21488: Add Default Callback Functions for add_settings_field()
-------------------------+------------------------------
Reporter: mordauk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by sc0ttkclark):
We actually use this same format for Pods 2.0 field handling, I recommend
it. Maybe instead of choices, 'data', but that's just a suggestion. I'd
also like to see a custom callback available for the type, or as long as
the type can be anything and runs through an action through an 'else',
then that's great.
Replying to [comment:7 scribu]:
> How about, instead of overloading the callback arg, you just skip it
entirely and use a 'type' option instead?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21488#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list