From 49901e9648d97ec18014c5f3f8e0f22ea3dbf9a3 Mon Sep 17 00:00:00 2001 From: ruru4143 Date: Thu, 12 Sep 2024 16:27:55 +0200 Subject: [PATCH] tribe transformer: removed get_tribe_categories --- .../transformer/class-the-events-calendar.php | 17 ----------------- 1 file changed, 17 deletions(-) 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 *