# templately/trunk/modules/template-details/module.php

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

- Page: https://pluginprobe.com/plugins/templately/trunk/code/modules/template-details/module.php
- Raw: https://pluginprobe.com/plugins/templately/trunk/raw/modules/template-details/module.php
- Modified: 2026-09-24T05:45:44+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/trunk/code/modules/template-details/module.php#L10-L20`.

```php
<?php
/**
 * Template-details module (spec 018-template-details).
 *
 * Owns the Checkout endpoint (purchase/upgrade redirect) plus the detail-fetch and
 * related-templates sagas. The detail item-fetch/favourite/rating REST endpoints are
 * NOT owned here — they are registered by modules/template-browsing (Items.php); this
 * module's register_rest_routes() intentionally covers only Checkout.
 *
 * @package Templately
 */

namespace Templately\Modules\TemplateDetails;

use Templately\Core\Module_Base;
use Templately\Modules\TemplateDetails\REST\Checkout;

class Module extends Module_Base {

	public function get_name(): string {
		return 'template-details';
	}

	public function register_rest_routes(): void {
		Checkout::get_instance()->register_routes();
	}
}

```
