We show that Liebs concavity theorem holds more generally for any unitary invariant matrix function $phi:mathbf{H}_+^nrightarrow mathbb{R}_+^n$ that is concave and satisfies Holders inequality. Concretely, we prove the joint concavity of the function $(A,B) mapstophibig[(B^frac{qs}{2}K^*A^{ps}KB^frac{qs}{2})^{frac{1}{s}}big] $ on $mathbf{H}_+^ntimesmathbf{H}_+^m$, for any $Kin mathbb{C}^{ntimes m}$ and any $s,p,qin(0,1], p+qleq 1$. This result improves a recent work by Huang for a more specific class of $phi$.