[buddypress-trac] [BuddyPress Trac] #6575: Make the (required) portion of the Xprofile field label filterable

buddypress-trac noreply at wordpress.org
Tue Aug 4 19:53:07 UTC 2015


#6575: Make the (required) portion of the Xprofile field label filterable
----------------------------------+-----------------------------
 Reporter:  garrett-eclipse       |      Owner:
     Type:  enhancement           |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - XProfile  |    Version:  2.3.2
 Severity:  normal                |   Keywords:  dev-feedback
----------------------------------+-----------------------------
 Hello,

 Full details on my support request - https://buddypress.org/support/topic
 /feature-request-filterable-xprofile-field-labels/#post-242779

 In short I'd like the '(required)' text of the Xprofile field label to be
 filterable so it can be replaced where appropriate. In my case I'd like to
 replace it when the field is implemented on the Woocommerce checkout page
 so the denotation of required matches the Woocommerce fields.

 Code to Amend;

 {{{
 <label for="<?php bp_the_profile_field_input_name(); ?>">
         <?php bp_the_profile_field_name(); ?>
         <?php if ( bp_get_the_profile_field_is_required() ) : ?>
                 <?php esc_html_e( '(required)', 'buddypress' ); ?>
         <?php endif; ?>
 </label>

 }}}

 Suggested fix could either be implementing the filter here directly or by
 setting up a function bp_the_profile_field_input_required() which
 implements the filter.

 Thank you
 P.S. A current js workaround is posted on the original support ticket.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6575>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list