Digital Sovereignty for everyone

LH Profile Page

LH Profile Page owns a core set of user profile fields for LocalHero sites – phone, secondary phone, gender, birthdate, street address, town, postcode, state/province, and country. Phone numbers are stored by LH Phone Numbers (required since 3.21.0) and addresses by LH Addresses (required since 3.26.0), each in its own network tables; the other fields are stored as plain WordPress user meta rather than a custom database table. It also integrates these fields into BuddyPress’s xProfile system as “faux” field types, so they can be added to a BuddyPress profile field group and edited through the normal xProfile UI while the underlying data stays in ordinary wp_usermeta and LH Phone Numbers’ and LH Addresses’ tables.

This makes the plugin migration-critical: any site owner leaving LocalHero needs to understand this data model to export or migrate their members’ profile data, since a large number of other lh- plugins (check-ins, CRM, group invites, group reports, vcard export, CSV import, “Users Insights”) all read or write these same fields.

Key features

  • Per-field validation. Phone numbers are validated to E.164 format by LH Phone Numbers’ normaliser, so every plugin on the network uses one set of rules and one default region; addresses are validated and normalised by LH Addresses (states to subdivision codes, countries to ISO codes); gender is restricted to a fixed value set; birthdate is normalised to a consistent Y-m-d date string. Each validated meta field is registered via WordPress’s own register_meta(), so the validation applies to any direct write to that meta key – not just writes that go through this plugin’s own forms.
  • Front-end and back-end editing. A WordPress admin user-edit screen section, a front-end shortcode form ([lh_profile_admin_form]), and full BuddyPress xProfile integration all edit the same underlying data.
  • A field-class architecture. What was originally one large “god class” has been progressively split into a dedicated class per field (phone, gender, birthdate, and each of the five address fields, plus the three name fields), each with its own file, while keeping the original class’s public methods working via back-compat proxy shims – see Field Class Architecture.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu ⋮.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.