
內容簡介
TLY URL Shortener 外掛將 WordPress 與 T.LY API 連接,讓編輯者可以在控制台內輕鬆創建、重新生成、複製及管理短連結,提升內容管理的效率。
【主要功能】
• 設定頁面可在「設定 > T.LY」找到
• 發佈文章時自動生成短連結
• 文章編輯器的元框可進行短連結操作
• 整合 Gutenberg 側邊欄面板
• 手動縮短選定或粘貼的外部連結
• 文章列表中的列和行操作
外掛標籤
開發者團隊
原文外掛簡介
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 Shortener from 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
init
transition_post_status
admin_menu
admin_init
admin_enqueue_scripts
add_meta_boxes
rest_api_init
admin_post_tlyursh_generate_short_link
admin_notices
manage_post_posts_columns
manage_page_posts_columns
manage_post_posts_custom_column
manage_page_posts_custom_column
post_row_actions
page_row_actions
Filters provided
tlyursh_supported_post_types
tlyursh_auto_generate_for_post_type
tlyursh_enable_logging
tlyursh_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
