bp_get_the_profile_field_value()
Returns the XProfile field value.
Description
Return
(string)
Source
File: bp-xprofile/bp-xprofile-template.php
function bp_get_the_profile_field_value() { global $field; $field->data->value = bp_unserialize_profile_field( $field->data->value ); if ( 'gender' === $field->type ) { $split_string = explode( '_', $field->data->value ); $field->data->value = $split_string[1]; } /** * Filters the XProfile field value. * * @since BuddyPress 1.0.0 * * @param string $value Value for the profile field. * @param string $type Type for the profile field. * @param int $id ID for the profile field. */ return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id ); }
Changelog
Version | Description |
---|---|
BuddyPress 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.