The slant height of a regular pyramid is an altitude of a lateral face.
For a non-regular pyramid, the slant height is not defined.