xprofile_get_field_id_from_name
Returns the ID for the field based on the field name.
Description
(int) xprofile_get_field_id_from_name( (string) $field_name );
Returns (int)
$field_id on success, false on failure.
Parameters (1)
- 0. $field_name (string)
- The name of the field to get the ID for.
Usage
if ( !function_exists( 'xprofile_get_field_id_from_name' ) ) { require_once ABSPATH . PLUGINDIR . 'buddypress/bp-xprofile/bp-xprofile-functions.php'; } // The name of the field to get the ID for. $field_name = ''; // NOTICE! Understand what this does before running. $result = xprofile_get_field_id_from_name($field_name);
Defined (1)
The function is defined in the following location(s).
- /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 );
- }