'Display block ID as ACF message (or similar)

I have a client who needs to create jump links to custom blocks. He's comfortable using the inspector to get the block ID, but it would be easier for the rest of his team if the block ID appeared on the edit screen of the block. It's easy to display it on the Preview screen, but that breaks up the flow of the client getting a 1-to-1 preview of the frontend of the site. It wouldn't necessarily have to be the ACF message field. Any method that printed that information within the editor would be perfect.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source