Hi, I looked it up for you. ' What John had told me' is identified by Quirk & Greenbaum as a nominal relative clause . ' What' is classified as a pronoun, or more specifically, a nominalized relative pronoun.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.