From 3975386a5236b151ddb611b3f9dba58345b94d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 2 Oct 2024 18:10:59 +0200 Subject: [PATCH] set hardcoded template for content --- includes/activitypub/transformer/class-event.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index 7793650..7b144a6 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -54,6 +54,16 @@ abstract class Event extends Post { return comments_open( $this->wp_object ); } + /** + * Set a hardcoded template for the content. + * + * This actually disabled templates for the content. + * Maybe this independent templates for events will be added later. + */ + protected function get_post_content_template(): string { + return '[ap_content]'; + } + /** * Returns the title of the event. *