Adding in get_from_trash methods and changing constants to JSONAPI instead of WCAPI