At the time of writing, there are no filters on the initial edits array passed from PHP through to javascript and into the editor initialisation function.
If such a filter existed, it would be possible to apply a post_status
field, but no PHP or JS hooks exist currently to do this.
The Editor
component also provides no opportunities to modify this structure to add/edit values.
Related Posts:
- What differences are there between a Privately Published post and a Draft post?
- Let private posts stay in status “private” after edit through “editors”
- featuring old articles without messing up with the archive
- Hiding by default specific post status on backend list?
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- How publish post from pending status
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- editPost without undo entry
- add action only on post publish – not update
- How to prevent posts from being published too close to each other?
- How to hide specific Gutenberg blocks settings from users
- How to Display a List of Users Who Have Made at Least 1 Post?
- How To Have Two Gutenberg Editors On One Post?
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Is it possible to Schedule Attachments in WordPress?
- Elegant way to include only published posts with get_objects_in_term()?
- Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg
- How can I see a list of pages and post where my custom Gutenberg block is used?
- WordPress plugin to publish to multiple remote WordPress blogs
- Post publish only hook?
- Publish pending article from front end with a button?
- How to add a “publish” link to the quick actions
- How to limit user to publish post per day and per role?
- When a user creates a post (pending), send a confirmation link that allows them to publish
- In what sequence are the hooks fired when a post is “published”?
- Restrict the Number of Posts an Author can Publish (over time)?
- Add javascript when post is published
- Setting post meta data to random value during post status transition / on publish
- Get post from custom REST endpoint in Gutenberg
- How to change post status from publish to draft using hook in wordpress?
- Publish posts only after the condition is met
- Enable commenting on front-end preview page for pending posts
- Detect Post Type when publish_post is ran
- How can I display a specific user’s first published post?
- Custom Post Status Posts viewable to the public
- Does WordPress remove draft status automatically?
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Prevent post from being published if no category selected
- Send email to user that his post has been rejected
- Limit number of posts a user can make per minute?
- How can a guest view the “Pending Review” Post?
- How do I add a reusable block to a programmatically created post?
- Every possible way to get data (posts) from WordPress
- publish_post conflicts with save_post
- How do I batch create revisions of all posts?
- add filter to “quick edit menu” in wordpress admin
- ‘transition_post_status’ only fires when pressing “Add New”
- Planned private posts get published immediately
- Notification to Admin or Author upon new post [duplicate]
- How to run a function when post is edited or updated using publish post action?
- How can I create custom button in post.php
- Limit Gutenberg blocks available to users to choose from
- WordPress doesn’t save or publish new posts
- Embedding Post Editor Into External Site
- Add data attribute of post_id for Internal links
- Auto inserted strange characters in wp post
- Updating post status via rest api
- Hook when post is set from published to draft?
- Send email to user when I publish a new post
- Filtering private Posts
- My posts are getting to Auto draft when I try to Publish
- Moving Gutenberg content from one website to another (block media ids wrong?)
- How to publish a post if condition is met?
- WordPress get tags in “publish_post” hook
- Hide or remove custom post status
- Put page on Archived statut after end of publication date
- get_next_post() not working with future post status
- How to add a block to a category page?
- post is not showing more than 3949 words
- Bulk Post update_post_meta
- Create blog post from external source and set publication date
- Modify loop to include all post statuses not just ‘published’
- I want to send push notification just after publish a new post
- Function/filter or plugin to change post status based on custom field value
- How to Test a Blog Post for Update vs. Publish Status — Unique
- How to handle a post before publishing?
- get_posts includes “auto drafts”?
- Return All Post from publish to draft [duplicate]
- Action while post is being published
- How can I make my blog private? [closed]
- Post Format Status [closed]
- Do anything on post_status change [duplicate]
- Is there a block to print post link standalone in a block theme?
- How can add custom commands in post-new.php in wordpress
- Making a private post visitable by link?
- Notify/check if the content of a custom gutenberg block has changed on save_post
- ‘403 Forbidden’ when publishing a post containing different blocks
- Gutenberg block: add a multi-select for posts
- It tells me that I exceeded the maximum number of executions when trying to publish content
- Can’t publish custom type posts that don’t support title and editor, instead they’re saved as draft
- Preset category checkbox from URL parameter when creating new post
- Is it possible to create dynamic templates for block themes directly from the site editor?
- REST API – Retrieving posts with custom status
- Hide PUBLIC posts in the LOOP from LOGGED-IN users
- How do I get my Gutenberg element to prevent last modified from updating?
- Implementing Soft Delete for Bulk Actions / Empty Trash
- Can’t save/get Patterns’ `post_content` attribute
- Shortcode in loop always display data of first post on the page
- How to restore post to pending status (no draft)
- How to add publish button in menu All Posts (Wp-Admin)