Tribe__Events__Aggregator__Record__Activity::__wakeup()
Register the Activities Tracked
Source
File: src/Tribe/Aggregator/Record/Activity.php
public function __wakeup() {
// Entry for Events CPT
$this->register( Tribe__Events__Main::POSTTYPE, array( 'event', 'events' ) );
// Entry for Organizers CPT
$this->register( Tribe__Events__Organizer::POSTTYPE, array( 'organizer', 'organizers' ) );
// Entry for Venues CPT
$this->register( Tribe__Events__Venue::POSTTYPE, array( 'venue', 'venues' ) );
// Entry for Terms in Events Cat
$this->register( Tribe__Events__Main::TAXONOMY, array( 'category', 'categories', 'cat', 'cats' ) );
// Entry for Tags
$this->register( 'post_tag', array( 'tag', 'tags' ) );
// Entry for Attachment
$this->register( 'attachment', array( 'attachments', 'image', 'images' ) );
/**
* Fires during record activity wakeup to allow other plugins to inject/register activity entries
* for other custom post types
*
* @param Tribe__Events__Aggregator__Record__Activity $this
*/
do_action( 'tribe_aggregator_record_activity_wakeup', $this );
}