bp_get_the_profile_field_alternate_name( BP_XProfile_Field_Type $the_field = false )
Returns the XProfile field’s alternate name, if added, empty otherwise.
Description
Parameters
- $the_field
-
(Optional) field object. Optional. Defaults to global $field object.
Default value: false
Return
(string)
Source
File: bp-xprofile/bp-xprofile-template.php
function bp_get_the_profile_field_alternate_name( $the_field = false ) {
if ( !$the_field ) {
global $field;
$the_field = $field;
}
/**
* Filters the XProfile field's alternate name.
*
* @since BuddyBoss 1.0.0
*
* @param string Alternate name for the profile field.
*/
return apply_filters( 'bp_get_the_profile_field_alternate_name', $the_field->get_alternate_name() );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.