Does something like is_rest() exist

Posted by Prem Tiwari | Updated on

Just stumbled over the same problem and wrote a simple function is_rest that allows you to check if the current request is a WP REST API request.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers