Remove Todo for preview url

MAILPOET-6430
This commit is contained in:
Oluwaseun Olorunsola
2025-01-30 11:37:39 +01:00
committed by Oluwaseun Olorunsola
parent 7dfdbef152
commit f1abe65e8e
3 changed files with 1 additions and 2 deletions

View File

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

View File

@@ -76,5 +76,4 @@ We may add, update and delete any of them.
## TODO
- We use `mailpoet_data` in some section of the codebase. This will be updated.
- Native email editor implementation for the `preview_url`.
- The content validation in the editor looks for the unsubscribe link tag, which is registered in the MailPoet plugin. We need either introduce generic unsubscribe link tag or move the validation to the MailPoet plugin.

View File

@@ -185,6 +185,7 @@ class Email_Editor {
'has_archive' => true,
'show_in_rest' => true, // Important to enable Gutenberg editor.
'default_rendering_mode' => 'template-locked',
'publicly_queryable' => true, // required by the preview in new tab feature.
);
}