Knave of Hearts is a character who only appears on one of the Wanted Posters from the Shrek 2 PC Game. He is shown to be wanted for pastry theft- a reference to the "Queen of Hearts" nursery rhyme.
He originates from the Lewis Carroll novel Alice's Adventures in Wonderland and the aforementioned nursery rhyme- which in turn was based on the deck of cards that feature the hearts characters.