Digital Sovereignty for everyone

Member addresses

Addresses are stored by LH Addresses, once for the network, and each site sees only the addresses it holds (its uses). LH Addresses does not know what a member is, so LH Membership answers for it (includes/lh-membership-addresses-class.php, since 2.110.0).

Who is a member

A user holding any member-type term on the site: membership of the organisation, not an account or an editor role. Another site’s membership is read straight from that site’s own term tables, so no blog switch is needed.

Filters answered

  • lh_addresses_site_can_read: true when the viewer holds the member-data capability on the site (promote_users, filter lh_membership_return_member_data_capability) and the subject is a current member, or a former one: someone the site holds or has held an address use for. A former member’s site then sees only what it holds, the last address it was given.
  • lh_addresses_carry_use_on_move: when a member changes address, a site’s use moves to the new address only while they are a current member. The member’s own book always follows.

Clubs get their members’ addresses

Since 2.111.0, when a user is given a member type on a site (set_object_terms), the site gets a residential use (filter lh_membership_return_club_address_use_type) on the member’s own residential address. A site that already holds a current residential address for them keeps it; a site holding a replaced address, i.e. a former member who rejoins, is given the current one. Leaving ends nothing.

Existing members were given the same way by a one-off job, lh_membership_address_uses_backfill: single cron events on the main site once LH Addresses’ own backfill is done, 100 members per run (filter lh_membership_return_address_uses_backfill_batch_size), site by site in ID order, under a five-minute network lock, retrying five minutes later on a failed query. Progress is in the network option lh_membership-address_uses_backfill (site_id, last_user_id, given, skipped, failed, done, completed_at). Members with no address of their own are skipped.

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.