Prepare the batter and bake the cupcakes according to the recipe. Then, use a small knife (or apple corer) to carve out a small hole. Fill the hole with frosting, ganache, pudding, etc., then seal the hole with the piece you removed, and proceed with frosting the cupcakes as desired.