tribe transformer: removed get_tribe_categories

This commit is contained in:
ruru4143 2024-09-12 16:27:55 +02:00
parent e15f93689b
commit 49901e9648

View file

@ -45,23 +45,6 @@ final class The_Events_Calendar extends Event {
$this->tribe_event = \tribe_get_event( $wp_object ); $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 * Get status of the tribe event
* *