-
Notifications
You must be signed in to change notification settings - Fork 2
tp TouchPointWP Utilities PersonQuery
James K. edited this page May 7, 2024
·
1 revision
Wrap the UserQuery class such that the returned object is a Person instead of a User.
- Class name: PersonQuery
- Namespace: \tp\TouchPointWP\Utilities
- Parent class: WP_User_Query
mixed tp\TouchPointWP\Utilities\PersonQuery::__construct(array query, bool forceResultToPerson)
Queries WordPress Users as Person objects.
- Visibility: public
- query array - Essentially the parameters passed to WP_User_Query
- forceResultToPerson bool - If true, the output from the query will always be a Person, rather than a User.
- mixed
\tp\TouchPointWP\Utilities\PersonArray|\tp\TouchPointWP\Person[] tp\TouchPointWP\Utilities\PersonQuery::get_results()
- Visibility: public
- \tp\TouchPointWP\Utilities\PersonArray|\tp\TouchPointWP\Person[] - Generally, a Person array. Individual elements may be TouchPointWP_Exception objects if the person could not be found.
?\tp\TouchPointWP\Person tp\TouchPointWP\Utilities\PersonQuery::get_first_result()
- Visibility: public
- ?\tp\TouchPointWP\Person -
Documentation generated November 19, 2025 1:15am.
- 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
- Meeting
- MeetingArray
- Partner
- Person
- PostTypeCapable
- RegistrationType
- Report
- Rsvp
- Settings
- Stats
- StatusWidget
- Taxonomies
- TouchPointWP
- TouchPointWP_AdminAPI
- TouchPointWP_Exception
- TouchPointWP_WPError
- Utilities
- tp\TouchPointWP