PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.8.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.8.0
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / template-details / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.8.0, at modules/template-details/module.php

28 lines 772 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template-details module (spec 018-template-details).
4 *
5 * Owns the Checkout endpoint (purchase/upgrade redirect) plus the detail-fetch and
6 * related-templates sagas. The detail item-fetch/favourite/rating REST endpoints are
7 * NOT owned here — they are registered by modules/template-browsing (Items.php); this
8 * module's register_rest_routes() intentionally covers only Checkout.
9 *
10 * @package Templately
11 */
12
13 namespace Templately\Modules\TemplateDetails;
14
15 use Templately\Core\Module_Base;
16 use Templately\Modules\TemplateDetails\REST\Checkout;
17
18 class Module extends Module_Base {
19
20 public function get_name(): string {
21 return 'template-details';
22 }
23
24 public function register_rest_routes(): void {
25 Checkout::get_instance()->register_routes();
26 }
27 }
28