[wp-trac] [WordPress Trac] #21488: Add Default Callback Functions for add_settings_field()
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 15 22:26:40 UTC 2012
#21488: Add Default Callback Functions for add_settings_field()
-------------------------+------------------------------
Reporter: mordauk | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by WraithKenny):
I've done something similar (with the $args overloading) but without the
`switch ($field['callback'])` stuff: [[BR]]
https://github.com/unFocus/Scripts-n-Styles/blob/master/includes/class-
sns-settings-page.php#L57
It references the methods here (it's only a class for naming collision
prevention): [[BR]]
https://github.com/unFocus/Scripts-n-Styles/blob/master/includes/class-
sns-form.php
The difference is I had to dual purpose `label_for` which *should* match
the `$field['id']`
+1 for any sort of input html library in core tho :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21488#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list