Chris Arter has written a “middleware…

Chris Arter has written a “middleware helper” that allows you to write simple checks with the WordPress REST API.