From 89ffb3d797b000b84c190bc88e3e22cb473b4071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 4 Dec 2023 19:42:13 +0100 Subject: [PATCH] refactoring make get_supported_post_types static --- activitypub/transformer/class-tribe.php | 2 +- activitypub/transformer/class-vs-event.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activitypub/transformer/class-tribe.php b/activitypub/transformer/class-tribe.php index 4c2bf3f..2211b3a 100644 --- a/activitypub/transformer/class-tribe.php +++ b/activitypub/transformer/class-tribe.php @@ -63,7 +63,7 @@ class Tribe extends \Activitypub\Transformer\Base { * @access public * @return array Widget categories. */ - public function get_supported_post_types() { + public static function get_supported_post_types() { return array( 'tribe_events' ); } } diff --git a/activitypub/transformer/class-vs-event.php b/activitypub/transformer/class-vs-event.php index 966aea0..be7d2eb 100644 --- a/activitypub/transformer/class-vs-event.php +++ b/activitypub/transformer/class-vs-event.php @@ -68,7 +68,7 @@ class VS_Event extends \Activitypub\Transformer\Base { * @access public * @return array Widget categories. */ - public function get_supported_post_types() { + public static function get_supported_post_types() { return array( 'event' ); }