From 724a8847380089ba8f4e893fc9b5c65bc04a8b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 2 Oct 2024 18:01:20 +0200 Subject: [PATCH] add_post_type_support when updating activitypub_support_post_types --- includes/class-setup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-setup.php b/includes/class-setup.php index 67877fb..a02076c 100644 --- a/includes/class-setup.php +++ b/includes/class-setup.php @@ -272,6 +272,7 @@ class Setup { foreach ( $this->active_event_plugins as $event_plugin ) { if ( ! in_array( $event_plugin->get_post_type(), $activitypub_supported_post_types, true ) ) { $activitypub_supported_post_types[] = $event_plugin->get_post_type(); + add_post_type_support( $event_plugin->get_post_type(), 'activitypub' ); } } update_option( 'activitypub_support_post_types', $activitypub_supported_post_types );