diff --git a/lib/Form/DisplayFormInWPContent.php b/lib/Form/DisplayFormInWPContent.php index 95d3d8b3e1..8861f966c6 100644 --- a/lib/Form/DisplayFormInWPContent.php +++ b/lib/Form/DisplayFormInWPContent.php @@ -19,6 +19,12 @@ class DisplayFormInWPContent { FormEntity::DISPLAY_TYPE_SLIDE_IN, ]; + const SUPPORTED_POST_TYPES = [ + 'post', + 'product', + 'job_listing', + ]; + /** @var WPFunctions */ private $wp; @@ -187,7 +193,7 @@ class DisplayFormInWPContent { return false; } - if ($this->wp->isSingular('post') || $this->wp->isSingular('product')) { + if ($this->wp->isSingular(self::SUPPORTED_POST_TYPES)) { if ($this->shouldDisplayFormOnPost($setup, 'posts')) return true; if ($this->shouldDisplayFormOnCategory($setup)) return true; if ($this->shouldDisplayFormOnTag($setup)) return true;