/** * Custom template loader. * * @param string[] $post_types Post types whose templates should be overriden. * @param string $base_path Base path for the template files. * * @codeCoverageIgnore */ public function __construct($base_path, $post_types) { parent::__construct($base_path); $this->post_types = (array) $post_types; }
/** * Custom template loader. * * @param string[] $taxonomies Taxonomies whose templates should be overriden. * @param string $base_path Base path for the template files. * * @codeCoverageIgnore */ public function __construct($base_path, $taxonomies) { parent::__construct($base_path); $this->taxonomies = (array) $taxonomies; }