src/Core/Theme/Templates.php
public function register()
    {
        foreach ($this->templates as $post_type => $templates) {
            if (empty($templates)) {
                continue;
            }

            $this->filter->add("theme_{$post_type}_templates", function ($registered) use ($templates) {
                return array_merge($registered, $templates);
            });
        }
    }
public function register()
    {
        foreach ($this->templates as $post_type => $templates) {
            if (empty($templates)) {
                continue;
            }

            $this->filter->add("theme_{$post_type}_templates", function ($registered) use ($templates) {
                return array_merge($registered, $templates);
            });
        }
    }
public function register ( ) { foreach ( $ this -> templates as $ post_type => $ templates ) { if ( empty ( $ templates ) ) { continue ; } $ this -> filter -> add ( "theme_{$post_type}_templates" , function ( $ registered ) use ( $ templates ) { return array_merge ( $ registered , $ templates ) ; } ) ; } }
Register theme templates.
Register theme templates .