-
Notifications
You must be signed in to change notification settings - Fork 2
tp TouchPointWP PostTypeCapable
James K. edited this page Jun 9, 2025
·
5 revisions
This is a base class for those objects that can be derived from a Post.
- Class name: PostTypeCapable
- Namespace: \tp\TouchPointWP
- This is an abstract class
- This class implements: tp\TouchPointWP\Interfaces\module, tp\TouchPointWP\Interfaces\storedAsPost, tp\TouchPointWP\Interfaces\actionButtons
int tp\TouchPointWP\PostTypeCapable::post_id()
Get the Post_id.
- Visibility: public
- int -
\WP_Post|null tp\TouchPointWP\Interfaces\storedAsPost::getPost(bool create)
Get the WP_Post object corresponding to the object.
- Visibility: public
- This method is defined by tp\TouchPointWP\Interfaces\storedAsPost
- create bool - Set true if the post should be created if it doesn't exist. This would need to be implemented in each module, and is not implemented in most.
- \WP_Post|null -
?\tp\TouchPointWP\PostTypeCapable tp\TouchPointWP\PostTypeCapable::fromPost(\WP_Post post)
Create relevant objects from a given post
- Visibility: public
- This method is static.
- post WP_Post
- ?\tp\TouchPointWP\PostTypeCapable -
string tp\TouchPointWP\PostTypeCapable::permalink()
Get the link for the post.
- Visibility: public
- string -
\tp\TouchPointWP\Utilities\NotableAttributes tp\TouchPointWP\PostTypeCapable::notableAttributes(array|\tp\TouchPointWP\Utilities\StringableArray exclude)
Get notable attributes.
- Visibility: public
- This method is abstract.
- exclude array|array - Attributes listed here will be excluded. (e.g. if shown for a parent, not needed here.)
- \tp\TouchPointWP\Utilities\NotableAttributes -
bool tp\TouchPointWP\PostTypeCapable::postIsType(\WP_Post post)
Indicates if the given post can be instantiated as the given post type.
- Visibility: public
- This method is abstract.
- This method is static.
- post WP_Post
- bool -
bool tp\TouchPointWP\PostTypeCapable::postTypeMatches(string postType)
Indicates if the given post type name is the post type for this class.
- Visibility: public
- This method is abstract.
- This method is static.
- postType string
- bool -
int tp\TouchPointWP\PostTypeCapable::getTouchPointId()
Gets a TouchPoint item ID number, regardless of what type of object this is.
- Visibility: public
- This method is abstract.
- int -
bool tp\TouchPointWP\Interfaces\module::load()
Loads the module and initializes the other actions.
- Visibility: public
- This method is static.
- This method is defined by tp\TouchPointWP\Interfaces\module
- bool -
\tp\TouchPointWP\Utilities\StringableArray tp\TouchPointWP\Interfaces\actionButtons::getActionButtons(string|null context, string btnClass, bool withTouchPointLink, bool absoluteLinks)
- Visibility: public
- This method is defined by tp\TouchPointWP\Interfaces\actionButtons
- context string|null - A string that gives filters some context for where the request is coming from
- btnClass string - HTML class names to put into the buttons/links
- withTouchPointLink bool - Whether to include a link to the item within TouchPoint.
- absoluteLinks bool - Set true to make the links absolute, so they work from apps or emails.
- \tp\TouchPointWP\Utilities\StringableArray -
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