# templately/trunk/modules/subscription/module.php

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

- Page: https://pluginprobe.com/plugins/templately/trunk/code/modules/subscription/module.php
- Raw: https://pluginprobe.com/plugins/templately/trunk/raw/modules/subscription/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/subscription/module.php#L10-L20`.

```php
<?php
/**
 * Subscription module.
 *
 * "Subscription" in the cloud sidebar — the current plan and the comparison
 * table. Ported from `latest`'s `profile/Subscription.js`.
 *
 * DELIBERATELY OWNS NO ROUTE. The screen is read-only: plan changes,
 * cancellation and resumption all happen on templately.com, and it links out
 * for them. What it reads already exists — the plan comes from the stored user
 * record (`connect` / `profile/sync`) and the catalog from the public
 * `/templately/v1/pricing` endpoint template-browsing already serves. Purchases
 * go through `template-details`' `POST /checkout`, whose `subscription` branch
 * is admin-gated.
 *
 * So this module is JS-only: a route registration and a screen.
 *
 * @package Templately
 */

namespace Templately\Modules\Subscription;

use Templately\Core\Module_Base;

class Module extends Module_Base {

	public function get_name(): string {
		return 'subscription';
	}
}

```
