Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/04/2015 02:27:22 AM (8 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-textarea.php

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