imath / wp-statuses

WordPress plugin to ease Custom Post Statuses integration
GNU General Public License v2.0
161 stars 27 forks source link

Change default post status to Publish #55

Closed claytoncollie closed 2 years ago

claytoncollie commented 3 years ago

Hi. I am looking for a filter to change the default post status is publish instead of draft. After installing this plugin, my content editors are confused that when they write a post and hit the big blue button their post is not published. They have to toggle the post status and hit Update for it to be published. Is this possible to default to publish instead of draft?

sitoexpress commented 3 years ago

Hi, same issue here!

imath commented 2 years ago

Ok, I've been looking at it. It's only happening when using the Block Editor. If you use the Classic one, you get the desired behavior.

The problem with the Block Editor is: it's not possible to extend the PostPublishButton component, see: https://github.com/WordPress/gutenberg/blob/trunk/packages/editor/src/components/post-publish-button/index.js