Add job_listing into supported post types for forms
[MAILPOET-3639]
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user