protected function registerTemplates()
    {
        $this->hook->filter("theme_{$this->slug}_templates", function ($templates) {
            return array_merge($templates, $this->templates());
        })->dispatch();
    }
protected function registerTemplates()
    {
        $this->hook->filter("theme_{$this->slug}_templates", function ($templates) {
            return array_merge($templates, $this->templates());
        })->dispatch();
    }
protected function registerTemplates ( ) { $ this -> hook -> filter ( "theme_{$this->slug}_templates" , function ( $ templates ) { return array_merge ( $ templates , $ this -> templates ( ) ) ; } ) -> dispatch ( ) ; }
Register posttype templates.

@return void
Register posttype templates .