Preheat the oven to 160C (320F) and line the bottom and sides of three 6" (15cm) cake pans with parchment paper. Or you can butter and flour the sides of the cake pans.
In a bowl, combine the flour, cocoa powder, baking powder and salt. Set aside.
In the bowl of a stand mixer fitted with a paddle attachment (or use a bowl and a hand mixer), add the granulated sugar, butter and vanilla. Beat for 5 minutes on medium-high until the mixture becomes pale and fluffy. Scrape the sides and the bottom of the bowl a few times during the process.
Then, add the oil and beat until fully incorporated. After, add the melted chocolate and beat again.
Add eggs one at a time and beat until the mixture looks homogenous and emulsified.
Add the dry ingredients in three parts – alternating with the milk, starting and ending with the dry ingredients – while beating on low until a homogenous and silky consistency is reached. The pattern should look like this: dry/milk/dry/milk/dry.
Divide the batter evenly between the pans and bake for 27-30 minutes or until a toothpick inserted in the center comes out clean.
Remove from the oven and let cool down in the pans until safe to handle. Then, place the cake layers upside down onto a cooling rack to cool down completely. If you want to assemble the cake the next day, wrap cooled cake layers in plastic wrap and refrigerate overnight.