# templately/3.0.2/includes/Builder/Managers/ThemeCompatibility.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 3.0.2. 28 lines.

- Page: https://pluginprobe.com/plugins/templately/3.0.2/code/includes/Builder/Managers/ThemeCompatibility.php
- Raw: https://pluginprobe.com/plugins/templately/3.0.2/raw/includes/Builder/Managers/ThemeCompatibility.php
- Modified: 2024-01-24T10:10:10+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/templately/3.0.2/code/includes/Builder/Managers/ThemeCompatibility.php#L10-L20`.

```php
<?php

namespace Templately\Builder\Managers;

use Templately\Builder\TemplateLoader;

class ThemeCompatibility {
	private $theme;
	private $template;

	public function __construct() {
		add_action( 'init', [$this, 'init'] );
	}

	public function init() {
		$this->theme = wp_get_theme();
		$this->template = $this->theme->get_template();

		// switch ( $this->template ) {
		// }

		add_action( 'templately_locations', [ $this, 'register_locations' ], 999 );
	}

	public function register_locations( $manager ) {

	}
}
```
