diff --git a/includes/activitypub/transformer/class-the-events-calendar.php b/includes/activitypub/transformer/class-the-events-calendar.php index abf5adf..9e33839 100644 --- a/includes/activitypub/transformer/class-the-events-calendar.php +++ b/includes/activitypub/transformer/class-the-events-calendar.php @@ -45,23 +45,6 @@ final class The_Events_Calendar extends Event { $this->tribe_event = \tribe_get_event( $wp_object ); } - /** - * Get tribe category of wp_post - * - * @return string|null tribe category if it exists - */ - public function get_tribe_category() { - // TODO: make it possible that one event can have multiple categories? - // Using cat_slugs isn't the best way to do this, don't know if it's a good idea. - $categories = tribe_get_event_cat_slugs( $this->wp_object->ID ); - - if ( count( $categories ) === 0 ) { - return null; - } - - return $categories[0]; - } - /** * Get status of the tribe event *