Detect if REST API is running
Many times I have code and I want to make sure it only runs in a rest api context, or it never runs in a rest context.
I know there are some hooks, but is there a function similar to
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Thank you for registering with WPTricks