Helper class to create Custom Post Types in WordPress