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.
Return Return
(array|boolean) Returns the field settings array or false
when the field cannot be found.
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 ]; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |