This may be shown by writing the Young-Laplace equation in spherical form with a contact angle boundary condition and also a prescribed height boundary condition at, say, the bottom of the meniscus.
In order to maintain hydrostatic equilibrium, the induced capillary pressure is balanced by a change in height, h, which can be positive or negative, depending on whether the wetting angle is less than or greater than 90°.