```$cp``` is not defined by me. It's default variable used for custom profile fields class. If you check th code (original one) you'll see that is defined few hundred row bellow.