WordPress development has a history of returning false when something goes wrong in a function, but there has long-since been a better way to-do it.

wpdev.academy/wordpress-tips…