You appear to be a bot. Output may be restricted
Description
Register the user field if requiredFind the most appropriate field name given the field name that the user typed determine its field type ( if not text ) and the suggested label and register the field if it's necessary.
Usage
$string = oiku_map_field( $field );
Parameters
- $field
- ( string ) required – field name to map
Returns
string mapped field nameSource
File name: oik-user/shortcodes/oik-user.phpLines:
1 to 9 of 9
function oiku_map_field( $field ) { $name = oiku_get_field_name( $field ); $type = oiku_get_field_type( $name ); $label = oiku_get_field_label( $field ); if ( $type || $label ) { oiku_register_field( $name, $type, $label ); } return( $name ); }View on GitHub