Introduction
The Draft Posts API gives site members the ability to access and manage draft blog posts. A draft post is an article written by a site owner, blog editor, blog writer, or a guest writer that is not yet published.
A blog can have up to 100K draft posts. The size limit of a single draft blog post is 400KB.
Before you begin
It’s important to note the following points before starting to code:
- Install the Wix Blog app from Wix App Market.
translationId
will only be returned in thedraftPost
object if the Multilingual app is installed.- To use the Draft Posts API, import
{ draftPosts }
from thewix-blog-backend
module:
javascript | Copy Codeimport { draftPosts } from 'wix-blog-backend';
Was this helpful?