Custom Post Types - Slicejack/OmniBuilder GitHub Wiki

Creating custom post types with OmniBuilder is easy. All you need to do in order to create one is to use and create a instance of OmniBuilder\Custom_Post_Type class which is provided by the OmniBuilder.

use OmniBuilder\Custom_Post_Type;

$project = new Custom_Post_Type( 'project' );

You can also pass additional argumets supported by the WordPress API as a third parameter (second parameter is reserved for custom meta box(es) implementation).

use OmniBuilder\Custom_Post_Type;

$project = new Custom_Post_Type( 'project', array(), array(
	'supports' => array( 'title', thumbnail' )
) );

You can create as many custom post types as you wish.

use OmniBuilder\Custom_Post_Type;

$project = new Custom_Post_Type( 'project' );
$location = new Custom_Post_Type( 'location' );

Further reading