Handling “Not Found” Errors in the WordPress REST API for queries by slug
Handling "Not Found" Errors in the WordPress REST API when querying by slug. Use this to change not found empty arrays to a 404 status with response code.
Santa Monica Senior WordPress Developer
Santa Monica Senior WordPress Developer