From 2f0810224385193786de0a2a295b1ce881dddac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 29 Oct 2024 13:25:20 +0100 Subject: [PATCH] remove unused file --- improvements.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 improvements.md diff --git a/improvements.md b/improvements.md deleted file mode 100644 index c095490..0000000 --- a/improvements.md +++ /dev/null @@ -1,16 +0,0 @@ -Make use of: - -https://docs.theeventscalendar.com/reference/classes/tribe__events__api/get_event_terms/ - -for getting all tags/terms for an event! - -``` -public static function get_event_terms( $event_id, array $args = array() ) { - $terms = array(); - foreach ( get_post_taxonomies( $event_id ) as $taxonomy ) { - $tax_terms = wp_get_object_terms( $event_id, $taxonomy, $args ); - $terms[ $taxonomy ] = $tax_terms; - } - return $terms; -} -```