It’s always fascinating to see how different developers tackle the same coding problem. WordPress often prefers to "bail early" with early returns, but this can lead to inverse conditionals that I personally find harder to read. Which approach do you prefer? (see attached)
Here is the context: https://developer.wordpress.org/news/snippets/how-to-disable-heading-levels-in-the-editor/