set hardcoded template for content
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 42s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 1m5s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 1m5s

This commit is contained in:
André Menrath 2024-10-02 18:10:59 +02:00
parent 62c4e87fb2
commit 3975386a52

View file

@ -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.
*