Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/04/2015 02:27:22 AM (9 years ago)
Author:
dcavins
Message:

Introduce bp_the_profile_field_required_label().

Introduce a new template function,
bp_the_profile_field_required_label(), that
allows for translation and filtration of
‘required’ label for use with extended profile
fields.

Fixes #6521 and #6575.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r10163 r10179  
    6868        <label for="<?php bp_the_profile_field_input_name(); ?>">
    6969            <?php bp_the_profile_field_name(); ?>
    70             <?php if ( bp_get_the_profile_field_is_required() ) : ?>
    71                 <?php esc_html_e( '(required)', 'buddypress' ); ?>
    72             <?php endif; ?>
     70            <?php bp_the_profile_field_required_label(); ?>
    7371        </label>
    7472
Note: See TracChangeset for help on using the changeset viewer.