Using zucchini in baking recipes does not replace anything. It adds additional moisture to the batter because of the water content inside the vegetable, making whatever you are baking more moist. However, because of this, you will need to adjust other wet ingredients accordingly (decreasing them) to compensate for the additional moisture in the zucchini - and this is dependent on the recipe.