The one I tried had an actual pepper in the bottle, so I think it was added after bottling, but the last link I gave talks about adding pepper during the boiling stage, which makes sense to me if you want to really infuse the pepper flavor. Though, at the same time it would seem that boiling it would destroy the heat.
