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/bp-xprofile-admin.php

    r10163 r10179  
    522522
    523523                <?php if ( empty( $field->can_delete )                                    ) : ?><?php esc_html_e( '(Primary)',  'buddypress' ); endif; ?>
    524                 <?php if ( bp_get_the_profile_field_is_required()                         ) : ?><?php esc_html_e( '(Required)', 'buddypress' ); endif; ?>
     524                <?php bp_the_profile_field_required_label(); ?>
    525525                <?php if ( bp_xprofile_get_meta( $field->id, 'field', 'signup_position' ) ) : ?><?php esc_html_e( '(Sign-up)',  'buddypress' ); endif; ?>
    526526                <?php if ( bp_get_member_types() ) : echo $field->get_member_type_label(); endif; ?>
Note: See TracChangeset for help on using the changeset viewer.