As significant as the WordPress API is in building plugins, themes, and applications, there are often times where we may find ourselves needing to write custom functions to achieve something that we know WordPress already does.
Case in point: With Page Template Dashboard, I wanted to be able to show the name of the template rather than the filename. I knew WordPress was doing it, but I couldn’t find an actual API function for it.
So what’s the best thing to do in this particular situation?

