Heat the oven and prep the pan: Heat the oven to 350°F (175°C) and line a 12-cup muffin pan with cupcake liners.
Whisk the dry ingredients: In a large mixing bowl, whisk together the flour, cocoa powder, baking powder, baking soda, and salt.
Add the wet ingredients: Add the sugar, eggs, oil, and vanilla extract and whisk until almost combined. Pour in the hot coffee and whisk until the batter is smooth — it will be thin, and that is exactly right.
Fill and bake: Fill each liner two-thirds full and bake for 18 to 20 minutes, until a toothpick inserted into the center comes out clean. Cool the cupcakes in the pan for 10 minutes, then transfer them to a wire rack to cool completely.
Make the vanilla buttercream: Beat the butter on medium speed for about 2 minutes, until light and creamy. Add the powdered sugar in two additions, beating on low at first, then add the milk, vanilla, and salt and beat for 2 to 3 minutes, until smooth and fluffy.
Pipe the candy melt trees: Melt the green candy melts in the microwave in 10-second bursts, stirring between each one. Lay the pretzel sticks on a parchment-lined tray, transfer the melted candy to a piping bag, snip a small tip, and pipe a zigzag tree shape over the top of each pretzel stick. Add the sprinkles immediately, then refrigerate the tray until the trees are firm, about 15 minutes.
Frost the cupcakes: Spread or pipe the buttercream over each cooled cupcake in a smooth dome, then dip the top gently into the shredded coconut so it looks like fresh snow.
Add the trees and serve: Press one candy melt tree into the center of each cupcake, standing it upright in the frosting. Serve within a few hours for the crispest trees, or refrigerate until ready to serve.