01 - Preheat oven to 350°F. Line a standard muffin tin with 12 paper cupcake liners.
02 - In a medium mixing bowl, whisk together all-purpose flour, baking powder, and salt.
03 - In a large bowl, beat unsalted butter and granulated sugar with an electric mixer until pale and fluffy. Add eggs one at a time, beating well after each addition.
04 - Mix in the crushed pineapple, pineapple juice, milk, and vanilla extract until the batter is smooth and well combined.
05 - Add flour mixture to the wet batter, mixing just until fully incorporated. Avoid overmixing to maintain a tender crumb.
06 - Divide the batter evenly among the cupcake liners. Bake for 16 to 18 minutes or until a toothpick inserted in the center emerges clean.
07 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a cooling rack to cool completely before frosting.
08 - Beat softened butter and cream cheese together until smooth. Gradually add sifted powdered sugar, mixing on low speed. Blend in pineapple juice, vanilla extract, and food coloring if desired. Whip on high until light and fluffy.
09 - Once cupcakes are completely cool, generously frost each with pineapple whip frosting. Garnish with dried pineapple flowers or a maraschino cherry, if preferred.