Register WordPress post types and taxonomies using object-orientated design.