TagLock allows you to protect WordPress content (videos, text, downloads) based on KlickTipp tags without setting up a complex membership plugin.
Unlike traditional solutions, TagLock uses a headless approach: Protected content is not rendered in the initial HTML but is dynamically loaded via React and REST API only after successful API validation.
[taglock id="1"]...[/taglock] protects any content.For detailed documentation, API references, and integration guides, please visit our GitHub repository.
Use the shortcode to protect content:
[taglock id="1"]Protected content[/taglock]
Shortcode attributes:
id (required): TagLocker ID (configured in WordPress admin)message (optional): Custom denied messageloader_text (optional): Custom loading textAfter connecting your KlickTipp account, TagLock loads your available tags and lets you select them by name while storing their tag IDs internally.
Users should open protected pages via links that include their subscriber identifier in the URL hash (not as a query parameter):
https://example.com/protected-page/#taglock_subscriber_id=12345
The frontend stores the identifier in LocalStorage and removes it from the address bar.