01 - Preheat oven to 350°F. Line a standard muffin tin with 12 cupcake liners.
02 - In a medium mixing bowl, whisk together the all-purpose flour, baking powder, and salt until well combined.
03 - In a large bowl, beat the softened butter and granulated sugar together with an electric mixer until the mixture is light and fluffy.
04 - Add eggs one at a time to the butter mixture, beating well after each addition to fully blend.
05 - Stir in the crushed pineapple, reserved pineapple juice, milk, and vanilla extract until thoroughly combined.
06 - Add the dry ingredients to the wet ingredients and gently fold just until incorporated. Do not overmix.
07 - Divide the batter evenly among cupcake liners, filling each about two-thirds full. Bake for 16 to 18 minutes, or until a toothpick inserted in the center comes out clean.
08 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely before frosting.
09 - In a medium bowl, beat the softened butter and cream cheese until smooth. Gradually add sifted powdered sugar, mixing on low speed until combined. Mix in the pineapple juice, vanilla extract, and food coloring if desired. Beat on high speed until light and fluffy.
10 - Once cupcakes are completely cooled, generously frost each with pineapple whip frosting. Garnish with dried pineapple flowers or a maraschino cherry, if desired.