Define default content blocks

This commit is contained in:
Mike Jolley
2024-02-28 14:18:48 +00:00
parent 2002f66e15
commit 3ad932a17e
2 changed files with 25 additions and 1 deletions

View File

@@ -446,7 +446,7 @@ class NewsletterSaveController {
}
$newPostId = $this->wp->wpInsertPost([
'post_content' => '',
'post_content' => EmailEditor::getEmailDefaultContent(),
'post_type' => EmailEditor::MAILPOET_EMAIL_POST_TYPE,
'post_status' => 'draft',
'post_author' => $this->wp->getCurrentUserId(),