Can you post your js or try this?
import { addFilter } from '@wordpress/hooks';
addFilter(
'editor.PostStatus.statuses',
'sq/add-custom-post-status', // custom filter name
(statuses) => {
return [
...statuses, // save old statuses
{ // add new status
slug: 'prepare',
label: 'Prepare',
labelShort: 'Prepare',
public: false,
},
];
}
);
Related Posts:
- Get post from custom REST endpoint in Gutenberg
- Block Editor: Reset Reusable Blocks to last saved record
- WordPress React re-rendering to many times
- Keyboard shortcut for updating a page or post?
- How to hide specific Gutenberg blocks settings from users
- How To Have Two Gutenberg Editors On One Post?
- Ajax Load More Posts in Category Page
- Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg
- Get the current post ID as a variable in Javascript
- How to create WP Editor using javascript
- How can I see a list of pages and post where my custom Gutenberg block is used?
- Dynamically update post title in admin page
- Add javascript when post is published
- Add confirmation popup on “Move to Trash”
- Create a separate JS application for an individual post?
- How do I add a reusable block to a programmatically created post?
- Convert a complex webpage into WP theme
- Add scripts on custom post add/edit pages Not Working
- Injecting JavaScript into a Post with WP3.x
- Limit Gutenberg blocks available to users to choose from
- How can I get a post field value using javascript?
- Custom post preview without saving
- List blocks created by a specific block plugin
- How to Programmatically add an empty Block to every post on wordpress site?
- Ajaxify This Code
- Integrate OpenStreetMap on WordPress
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- Only show a Post once in 10 visits
- Block editors annoying warnings
- In post.php how can I remove onbeforeunload?
- How to populate a select field with post titles/ids in a block
- Navigate through the posts using keyboard arrows
- Call current post URL in ajax
- Get content from WordPress posts in Boostrap modal window – Javascript side?
- Insert specific information to a posts of a predefined category
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Using the loop to set locations for all posts on a single google map
- Insert JavaScript in a blog post or a new page?
- Get post publishing date from within custom HTML block
- Indenting within a blockquote
- Override WordPress core post-template.php block template
- How to remove the ManageBlocksMenuItem in the ToolsMoreMenuGroup in the Gutenberg Editor?
- Why is it recommended to insert JS through the theme, plugin, etc rather than in the post directly?
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- Embedding Post Editor Into External Site
- Add data attribute of post_id for Internal links
- Auto inserted strange characters in wp post
- Moving Gutenberg content from one website to another (block media ids wrong?)
- How to add a block to a category page?
- Ajax post doesnt call succes after got the response
- Blog Post slider not working
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- testing result of $.post with json_encode
- Loading posts outside wordpress
- Front end post delete error confirmation and success message
- How to hide a script ( an ad) from a specific post? [closed]
- WP Rest API feature image breaking react component
- Is there a block to print post link standalone in a block theme?
- How can I add a custom caclulation form in post?
- How do I save JS classes being applied to the WP dashboard via custom plugin?
- Notify/check if the content of a custom gutenberg block has changed on save_post
- editPost without undo entry
- 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?
- How do I check if I linked to a post before I delete it?
- duplicate posts when trying to update a post using the wp_insert_post.
- Displaying Page Title on index.php
- How to automate filing a form as a user
- Limiting the number of posts in WP_Query leads to unexpected result
- how to set beforsend option in wordpress ajax methods
- Guest Author – How to display posts on /author/ archive page
- Redirection not working in this front end post submission form?
- Add Word Limit to Posts
- Pulling in post category and children within category
- get query() without post content?
- How do I stop the loop from repeating in my category template?
- Get post ID in post/page edit area
- Restrict the_post-navigation to same category?
- What does WordPress do if I save a post without content/title? [duplicate]
- How to get all post_parents of a post?
- How can I add a page that shows posts from a single category?
- Pasting formatted text from MS-Word
- Custom post grid
- Need help creating a page that has editable fields
- Count words for each author separately
- Current post categories and subcatecories outside of the loop
- WordPress Delete Users from backend doesn’t work
- Shortcode: How to add custom posts?
- Meta boxes not saving
- problem with creating a wordpress post slider
- Hide first blog post in content and output it in widget
- Allow users to create their own page/s
- custom single.php post showing up twice
- How to use extract shortcode in loop?
- Make division in post_query?
- WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
- clicking on page title
- Display post count on archive page in reverse order
- Restore posts, but only posts that exist in my database backup
- WordPress REST API – Create post not working with 401 response but list posts working