At what stage of the construction process would the builder cut out the sole plate in a door opening?

At what stage of the construction process would the builder cut out the sole plate in a door opening?