src/Taxonomy/Builder.php
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_taxonomy($_self->singular, $_self->post_types, $this->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_taxonomy($_self->singular, $_self->post_types, $this->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_taxonomy ( $ _self -> singular , $ _self -> post_types , $ this -> options ) ; } ) ; }
Register the Taxonomy
@return void
Register the Taxonomy