A. The guests appreciated every dish which had been cooked by my mother.
B. The guests appreciated every dish which was cooked.
C. The guests appreciated every dish which my mother had cooked.
D. My mother had cooked every dish which the guests appreciated.
Given sentence is in past perfect tense and it is in passive voice.
Rule :
Subject + had + V3 + Other agents