Peter Pan is a character from the Shrek series. He does not appear in Shrek 2 and Shrek Forever After.
In Shrek he was in line to sell Tinkerbell his only line in the movie is He can fly (hence the reason why inkerbell sprinkle fairy dust on Donkey)
Shrek the Third
In Shrek the Third when Captain Hook approches a small boy in Far Far he say mistaking him for Peterpan He is metioned in the videogame version that Hook killed him