@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-profile-page/>
  a sioc:Post ;
  dc:title "Known as field" ;
  dcterms:identifier 154306 ;
  dc:modified "2026-11-11T15:01:52Z"^^xsd:dateTime ;
  dc:created "2026-11-11T15:00:54Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-profile-page/known-as-field/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-profile-page/\">LH Profile Page</a></li></ul><p class=\"wp-block-paragraph\">Since 3.14.0 a member can have a <strong>Known as</strong> name: the first name they go by when it isn&#8217;t their legal first name (e.g. &quot;Tezzuh&quot;). Clubs must hold a member&#8217;s full legal name, so <code>first_name</code> and <code>last_name</code> hold the legal name and Known as holds the name they are shown by. It is always labelled &quot;Known as&quot;, never &quot;Nickname&quot;.</p><h2 class=\"wp-block-heading\">Storage and validation</h2><ul class=\"wp-block-list\"><li><strong>Stored in the core <code>nickname</code> user meta.</strong> No new meta key and no <code>register_meta()</code> (core key, as with first name). Logic lives in <code>LH_Profile_Known_As_Field</code> (<code>includes/lh-profile-known-as-field-class.php</code>).</li><li><strong>One first name only.</strong> No spaces or surname, never an email address; letters, marks, apostrophes, hyphens and full stops; at most 50 characters.</li><li><strong>Reading.</strong> WordPress and LH User Provisioning fill <code>nickname</code> with placeholders (a username, an email address, a full name or the first name), so <code>return_known_as()</code> only reports it when it is a valid single name that differs from the legal first name. Anything else reads as empty.</li><li><strong>Clearing.</strong> Emptying the field on the profile form sets <code>nickname</code> back to the legal first name rather than blanking it. An empty value never touches a nickname that isn&#8217;t a Known as value.</li><li><strong>Audit.</strong> Each write stamps <code>lh_profile-updated_field</code> and <code>lh_profile-updated_time</code>, like the other profile fields.</li></ul><h2 class=\"wp-block-heading\">Display name</h2><p class=\"wp-block-paragraph\">Members are shown by their Known as name and legal last name (e.g. &quot;Tezzuh Jiang&quot;), or by their legal first and last name when there is no Known as. <code>sync-display-name</code> sets this with <code>display_name_from: known_as_last</code>. Saving or clearing Known as through the profile form updates the display name automatically, but only when it was built from the names (legal first and last name, the previous Known as and last name, or a placeholder); a display name chosen some other way is left alone. On the BuddyPress profile edit form the script builds the Name field the same way.</p><h2 class=\"wp-block-heading\">xProfile and abilities</h2><ul class=\"wp-block-list\"><li><strong>xProfile field type</strong> <code>lh_profile-known_as</code> (&quot;User Known As&quot;, <code>LH_Profile_xprofile_known_as_extender</code>). Add it to a field group after the name fields, labelled &quot;Known as&quot;, with the description &quot;The first name you go by, if it&#8217;s not your legal first name.&quot; Adding it to onboarding is configuration only.</li><li><code>search-users</code> returns <code>known_as</code> and searches it (partial, against <code>nickname</code>).</li><li><code>create-or-fill-user</code> takes <code>known_as</code>, fill-if-empty, and refuses it together with <code>nickname</code>. For a new user without a supplied <code>display_name</code>, the display name becomes the Known as name and last name.</li></ul>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Profile PageSince 3.14.0 a member can have a Known as name: the first name they go by when it isn&#8217;t their legal first name (e.g. &quot;Tezzuh&quot;). Clubs must hold a member&#8217;s full legal name, so first_name and last_name hold the legal name and Known as holds the name they are shown by. It is always labelled &quot;Known as&quot;, never &quot;Nickname&quot;.Storage and validationStored in the core nickname user meta. No new meta key and no register_meta() (core key, as with first name). Logic lives in LH_Profile_Known_As_Field (includes/lh-profile-known-as-field-class.php).One first name only. No spaces or surname, never an email address; letters, marks, apostrophes, hyphens and full stops; at most 50 characters.Reading. WordPress and LH User Provisioning fill nickname with placeholders (a username, an email address, a full name or the first name), so return_known_as() only reports it when it is a valid single name that differs from the legal first name. Anything else reads as empty.Clearing. Emptying the field on the profile form sets nickname back to the legal first name rather than blanking it. An empty value never touches a nickname that isn&#8217;t a Known as value.Audit. Each write stamps lh_profile-updated_field and lh_profile-updated_time, like the other profile fields.Display nameMembers are shown by their Known as name and legal last name (e.g. &quot;Tezzuh Jiang&quot;), or by their legal first and last name when there is no Known as. sync-display-name sets this with display_name_from: known_as_last. Saving or clearing Known as through the profile form updates the display name automatically, but only when it was built from the names (legal first and last name, the previous Known as and last name, or a placeholder); a display name chosen some other way is left alone. On the BuddyPress profile edit form the script builds the Name field the same way.xProfile and abilitiesxProfile field type lh_profile-known_as (&quot;User Known As&quot;, LH_Profile_xprofile_known_as_extender). Add it to a field group after the name fields, labelled &quot;Known as&quot;, with the description &quot;The first name you go by, if it&#8217;s not your legal first name.&quot; Adding it to onboarding is configuration only.search-users returns known_as and searches it (partial, against nickname).create-or-fill-user takes known_as, fill-if-empty, and refuses it together with nickname. For a new user without a supplied display_name, the display name becomes the Known as name and last name." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
