Can’t edit post status
-
Hi,
I’m having problems to change the post status from ‘pending’ to a custom post status. I’m doing this inside Gutenberg editor withwp.data.dispatch('core/editor').editPost({ status: 'mandado_editar'});
. This line executes well, the problem is when I save the post, it throws this error: “Failed to update. Message error: Not valid parameter: status”. Something weird is that if I try to change the post status to ‘draft’ it worked fine. Does the editPost() action in Gutenberg supports a custom post status as parameter?Thank you!
Lucas.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can’t edit post status’ is closed to new replies.