Habari\Pluggable::add_template PHP Method

add_template() protected method

Use this function as a shortcut to make available additional templates to a theme from within the plugin directory.
protected add_template ( string $name, string $filename, boolean $override = false )
$name string The name of the template that will be displayed, sans extension
$filename string The full path of the template file used for the specified name
$override boolean If false, allow a template with the same name in the active theme directory to override this one. If true, always override the active theme's template with this one.
    protected function add_template($name, $filename, $override = false)
    {
        if (count($this->_added_templates) == 0) {
            Plugins::register(array(&$this, '_plugin_available_templates'), 'filter', 'available_templates');
            Plugins::register(array(&$this, '_plugin_include_template_file'), 'filter', 'include_template_file');
        }
        $this->_added_templates[$name] = array($filename, $override);
    }