xprofile_get_field_id_from_name( string $field_name )
Returns the ID for the field based on the field name.
Description Description
Parameters Parameters
- $field_name
-
(Required) The name of the field to get the ID for.
Return Return
(int|null) $field_id on success, false on failure.
Source Source
File: bp-xprofile/bp-xprofile-functions.php
function xprofile_get_field_id_from_name( $field_name ) {
return BP_XProfile_Field::get_id_from_name( $field_name );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |