xprofile_get_field_id_from_name( string $field_name )

Returns the ID for the field based on the field name.

Description

Parameters

$field_name

(string) (Required) The name of the field to get the ID for.

Return

(int|null) $field_id on success, false on failure.

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
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.