Preheat your oven to 350°F (175°C) to ensure even baking and good rise.
In a large mixing bowl, whisk together the all-purpose flour, baking powder, baking soda, and salt. Set aside.
In another bowl, cream together the softened butter and granulated sugar until light and fluffy.
Add the eggs one at a time, mixing well after each addition.
Stir in the vanilla extract, vegetable oil, and milk.
Add the instant pistachio pudding mix to the wet ingredients and mix until fully combined.
Slowly add the dry ingredients to the wet mixture, stirring gently until just combined.
Fold in the crushed pineapple, ensuring even distribution throughout the batter.
Line your cupcake pan with liners and fill each liner about two-thirds full with the batter.
Bake in the preheated oven for 18-20 minutes or until a toothpick inserted into the center comes out clean.
Once baked, remove the cupcakes from the oven and let them cool in the pan for 5 minutes before transferring to a wire rack to cool completely.