llms_get_user_information_field( string $name )

Retrieve a single user information field by its ID attribute.


Parameters Parameters

$name

(string) (Required) The field's name.


Top ↑

Return Return

(array|boolean) Returns the field settings array or false when the field cannot be found.


Top ↑

Source Source

File: includes/functions/llms-functions-user-information-fields.php

function llms_get_user_information_field( $name ) {

	$fields = llms_get_user_information_fields();

	$field_index = array_search( $name, array_column( $fields, 'name' ), true );
	return false === $field_index ? false : $fields[ $field_index ];

}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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