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
- Gutenberg block: add a multi-select for posts
- 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
- Implement AJAX ‘load more’ with offset posts
- ‘403 Forbidden’ when publishing a post containing different blocks
- 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 get my Gutenberg element to prevent last modified from updating?
- Can’t save/get Patterns’ `post_content` attribute
- Shortcode in loop always display data of first post on the page
- Post/Page Preview Template
- Convert custom fields to post categories
- Most viewed post for the last 2 days using WP_Query
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Custom post type permalinks breaking due to 3.1 bug fix
- Gutenberg List Extension Block
- How to display featured image without it appearing in post?
- Ajax post filters not working
- Getting only the URL of the post thumbnail
- Displaying posts that belong to a specific author
- unique post in “$args” of wp_query display more than one post
- New Posts and Pages Won’t Save
- Why excerpt is Displaying same in Random Posts list
- Show posts on front page only
- My post does not show up
- Create a List of Widgets, where each widget holds three attributes
- How to fetch courses in all languages in WordPress?
- Create a tree with categories with get_posts()
- Center crop the feature image
- Display post on main page with thumbnail
- Custom Single Post Type not referring to single-post-type.php File
- index.php is only displaying current month’s posts?
- Remove duplicated posts in the loop if post has more than one category
- “Current” class on a singular page menu item with custom post types?
- get next/previous post name
- How do I display the next 3 posts in the sidebar?
- 2 tick boxes appearing below comments
- I cannot see the pagination in /wp-admin posts page
- Additional CSS classes not being added in Gutenberg editor
- Insert Tag in WordPress Post