#StackBounty: #filters #block-editor Changing text within the Block Editor

Bounty: 100

Question: how can I change text within the Block Editor itself?

  • When a user with edit but not publish permissions makes changes to a published post and clicks “submit for review,” the Block Editor presents a “post reverted to draft” success message. I would like to change this to my own text.

  • Also, in the Block Editor’s Publish panel, there’s text specific to WP Core roles – when a user with edit but not publish permissions hits Publish the first time and the pre-publish checks show up, a Core message says “When you’re ready, submit your work for review, and an Editor will be able to approve it for you.” (I use custom roles, so it’s not an Editor who can help them.)

I would like to either change that text (replace it with my own static text) or, ideally, find a way to pull a list of all users who have publishing permissions for this post type and output a list, saying something like, “One of these users will be able to approve it for you: (list of users’ display names).”

I can’t seem to find any documentation on filtering these messages, but surely I’m overlooking something since at the very least I’m sure they are translatable.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.