[buddypress-trac] [BuddyPress Trac] #7670: Let user pass additional param to edit_field_html() to show/hide form labels
buddypress-trac
noreply at wordpress.org
Sat Jan 27 11:38:59 UTC 2018
#7670: Let user pass additional param to edit_field_html() to show/hide form
labels
------------------------------+------------------------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Extended Profile | Version:
Severity: minor | Resolution:
Keywords: |
------------------------------+------------------------------
Comment (by antonioeatgoat):
@hnla Yes I mean to turn on or off descriptions. Thinking as a theme
developer I can think to some specific cases. For instance in a theme I
used those functions to a render an advanced search form for members and I
didn't want to show the descriptions of the fields. I had to add
`add_filter('bp_get_the_profile_field_is_required', '__return_false');`
right before `edit_field_html` and
`remove_filter('bp_get_the_profile_field_is_required', '__return_false');`
right after.
I don't know a specific case like this can worth the change, but is just
to inform and lead to a complete discussion.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7670#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list