xprofile_get_field_id_from_name( string $field_name )

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

Parameters Parameters


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

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.