# woo-additional-terms/1.6.2/src/TemplateManager.php

Additional Terms Lite for WooCommerce, version 1.6.2. 40 lines.

- Page: https://pluginprobe.com/plugins/woo-additional-terms/1.6.2/code/src/TemplateManager.php
- Raw: https://pluginprobe.com/plugins/woo-additional-terms/1.6.2/raw/src/TemplateManager.php
- Modified: 2023-07-27T11:37:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-additional-terms/1.6.2/code/src/TemplateManager.php#L10-L20`.

```php
<?php
/**
 * The plugin template manager class.
 *
 * @author MyPreview (Github: @mahdiyazdani, @gooklani, @mypreview)
 *
 * @since 1.6.0
 *
 * @package woo-additional-terms
 */

namespace Woo_Additional_Terms;

/**
 * Class TemplateManager.
 */
class TemplateManager {

	/**
	 * Render the template.
	 *
	 * @since 1.6.0
	 *
	 * @param string $template_name The template name.
	 * @param array  $args          The template arguments.
	 *
	 * @return void
	 */
	public function echo_template( $template_name, $args = array() ) {

		// Supports internal WooCommerce caching.
		wc_get_template(
			$template_name,
			$args,
			'',
			trailingslashit( woo_additional_terms()->service( 'file' )->plugin_path( 'templates' ) )
		);
	}
}

```
