TLY URL Shortener
·
Generate and manage T.LY short links directly inside WordPress for posts, pages, and manually selected external links.
TLY URL Shortener connects WordPress to the T.LY API so editors can create, regenerate, copy, and manage short links without leaving the dashboard.
Features
- Settings page under
Settings > T.LY - Automatic short-link generation on publish for posts and pages
- Post editor meta box with generate, regenerate, copy, and delete-local actions
- Gutenberg sidebar panel integration
- Manual external-link shortener for selected or pasted external links
- Posts list column and row actions
- Analytics service scaffold for future reporting
Installation
- Upload the plugin folder to
/wp-content/plugins/. - Activate
TLY URL Shortenerfrom the Plugins screen. - Go to
Settings > T.LY. - Add your T.LY API key.
- Optionally set a default short domain and enable the workflows you want.
Hooks used
inittransition_post_statusadmin_menuadmin_initadmin_enqueue_scriptsadd_meta_boxesrest_api_initadmin_post_tlyursh_generate_short_linkadmin_noticesmanage_post_posts_columnsmanage_page_posts_columnsmanage_post_posts_custom_columnmanage_page_posts_custom_columnpost_row_actionspage_row_actions
Filters provided
tlyursh_supported_post_typestlyursh_auto_generate_for_post_typetlyursh_enable_loggingtlyursh_enable_analytics_ui
Updating API behavior
Endpoint paths and response parsing are centralized in:
src/API/TLYURSH_Api_Client.php
If the T.LY API changes, update the ENDPOINTS map and request/response handling there.
Screenshots
- Settings page with API and automation options
- Posts list table with the T.LY link column and row actions
- Post edit screen meta box for copying, regenerating, and shortening links
External Services
This plugin connects to the T.LY API to shorten URLs.
Service: T.LY API Purpose: URL shortening
Data sent:
- Long URL entered by user
- API key (if configured)
When:
- When user creates a short link
Provider:
T.LY
Terms of Service:
https://t.ly/terms
Privacy Policy:
https://t.ly/privacy
