[buddypress-trac] [BuddyPress Trac] #6272: Add new hook admin_new_field_html_additional_options to allows plugin authors to add options to multi fields without the need to replicate the code

buddypress-trac noreply at wordpress.org
Tue Mar 3 16:55:19 UTC 2015


#6272: Add new hook admin_new_field_html_additional_options to allows plugin
authors to add options to multi fields without the need to replicate the
code
----------------------------------+--------------------
 Reporter:  svenl77               |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  2.3
Component:  Component - XProfile  |     Version:  2.2.1
 Severity:  normal                |  Resolution:
 Keywords:  needs-patch           |
----------------------------------+--------------------
Changes (by boonebgorges):

 * keywords:  has-patch => needs-patch
 * component:  API => Component - XProfile
 * milestone:  Awaiting Review => 2.3


Comment:

 Ah, thanks for the additional explanation, svenl77. I think the word
 "options" (and the hook  name `_additional_options`) was throwing me off -
 I was associating "options" with the field children.

 I don't have a problem with an action here, but here are some suggestions
 for improvement - let me know what you think.

 - Call it `'bp_admin_new_field_html_additional_settings'`
 - Put it at the very end of `div#inside` - right after the "Add Another
 Option" button

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6272#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list