Error thrown
Call to undefined function wp_is_json_request()