public function registerPostType()
    {
        // create options for the PostType
        $options = $this->createOptions();

        // check that the post type doesn't already exist
        if (!post_type_exists($this->name)) {
            // register the post type
            register_post_type($this->name, $options);
        }
    }
public function registerPostType()
    {
        // create options for the PostType
        $options = $this->createOptions();

        // check that the post type doesn't already exist
        if (!post_type_exists($this->name)) {
            // register the post type
            register_post_type($this->name, $options);
        }
    }
public function registerPostType ( ) { // create options for the PostType $ options = $ this -> createOptions ( ) ; // check that the post type doesn't already exist if ( ! post_type_exists ( $ this -> name ) ) { // register the post type register_post_type ( $ this -> name , $ options ) ; } }
Register the PostType
@return void
Register the PostType