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-multiselectbox.php

    r10163 r10179  
    7373        ) ); ?>
    7474
    75         <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 _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     75        <label for="<?php bp_the_profile_field_input_name(); ?>[]">
     76            <?php bp_the_profile_field_name(); ?>
     77            <?php bp_the_profile_field_required_label(); ?>
     78        </label>
    7679
    7780        <?php
Note: See TracChangeset for help on using the changeset viewer.