-
Notifications
You must be signed in to change notification settings - Fork 2
Advanced Customizing WebPublicPerson
The WebPublicPerson.py script controls the information that is sent to WordPress.
This allows you to exclude some people or manipulate the data before it's released to WordPress (and potentially the
public internet). We use this to exclude the last names from some Global Partners.
There are two variables that are used: Data.Person and Data.Info.
This is the Person object direct from TouchPoint. Its attributes are documented in the documentation and the code repository. Use this object to get information from the Person's record to customize.
This is the object that gets returned to WordPress. It has the following attributes and default values:
- Exclude - bool - Default: False. Setting this to True will prevent this person from being included in the WordPress completely. This means no user account will be created for them, and they will be excluded from any People Lists.
- GoesBy - string - Default: NickName if the Person has one, otherwise FirstName. This becomes the First_Name field in WordPress.
- LastName - string - Default: LastName. Becomes the Last_Name field in WordPress.
- DisplayName - string - Default: GoesBy + " " + LastName. Becomes the Display_Name field in WordPress.
The default script provided gives an example of how we use this to protect our global partners. Our partners have a FamilyExtraValue called "Security Level" and we take specific precautions based on that level:
- No special precautions. Full names are printed, everything is synced.
- Display full first names, but not last names.
- First initials only. Not last names.
- Exclude completely.
Documentation generated March 31, 2026 10:21pm.
- Simple RSVP
- People Lists
- Involvements
- Outreach Partners
- SQL & Python Reports
- Events Calendar from Meetings (Beta)
- Events Calendar Plugin Integration (Deprecated)
- tp
- tp\TouchPointWP
- Api
- Auth
- tp\TouchPointWP\Blocks
- CalendarGrid
- EventsCalendar
- ExtraValueHandler
- Geo
- tp\TouchPointWP\Interfaces
- Involvement
- Involvement_PostTypeSettings
- InvolvementMembership
- Location
- Lookup
- Meeting
- MeetingArray
- Partner
- Person
- PostTypeCapable
- RegistrationType
- Report
- Rsvp
- Settings
- Stats
- StatusWidget
- Taxonomies
- TouchPointWP
- TouchPointWP_AdminAPI
- TouchPointWP_Exception
- TouchPointWP_WPError
- Utilities
- tp\TouchPointWP