private function register() {

		$this->options['labels'] = $this->label;
		if (!isset($this->options['rewrite'])) {
			$this->options['rewrite'] = array('slug' => $this->singular);
		}

		$_self = &$this;

		add_action('init', function () use (&$_self) {
			register_post_type($_self->singular, $_self->options);
		});

	}
private function register() {

		$this->options['labels'] = $this->label;
		if (!isset($this->options['rewrite'])) {
			$this->options['rewrite'] = array('slug' => $this->singular);
		}

		$_self = &$this;

		add_action('init', function () use (&$_self) {
			register_post_type($_self->singular, $_self->options);
		});

	}
private function register ( ) { $ this -> options [ 'labels' ] = $ this -> label ; if ( ! isset ( $ this -> options [ 'rewrite' ] ) ) { $ this -> options [ 'rewrite' ] = array ( 'slug' => $ this -> singular ) ; } $ _self = & $ this ; add_action ( 'init' , function ( ) use ( & $ _self ) { register_post_type ( $ _self -> singular , $ _self -> options ) ; } ) ; }
Register the post type
@return void
Register the post type