Set publicly_queryable to true to allow preview of email editor custom post types

See https://developer.wordpress.org/reference/functions/register_post_type/#parameter-detail-information for more info
This commit is contained in:
Oluwaseun Olorunsola
2025-01-21 15:19:08 +01:00
committed by Oluwaseun Olorunsola
parent 94115d0ef2
commit a41aa8ad54

View File

@@ -67,6 +67,7 @@ class EmailEditor {
'singular_name' => __('Email', 'mailpoet'),
],
'rewrite' => ['slug' => self::MAILPOET_EMAIL_POST_TYPE],
'publicly_queryable' => true,
],
];
return $postTypes;