[WordPress] 外掛分享: All In One Link Shortener

首頁外掛目錄 › All In One Link Shortener
全新外掛
安裝啟用
★★★★★
5/5 分(2 則評價)
188 天前
最後更新
問題解決
WordPress 6.1+ PHP 7.4+ v1.0.3 上架:2025-10-02

內容簡介

總結:
All In One Link Shortener 外掛讓你可以輕鬆為WordPress網站的文章、頁面或任何URL建立短連結。它支援多個短連服務,包括Bitly、TinyURL和Rebrandly。你可以使用短代碼來生成短連結,並在管理區域快速複製它們。此外,這款外掛輕量、完全相容於WordPress,提供直觀的管理儀表板介面。

問題與答案:
1. All In One Link Shortener 外掛的主要功能是什麼?
- 它讓你可以輕鬆為WordPress網站的文章、頁面或任何URL建立短連結。
2. 這款外掛支援哪些短連服務?
- 它支援多個短連服務,包括Bitly、TinyURL和Rebrandly。
3. 如何生成 API Token?
- Bitly: 登入Bitly帳戶,在設置中找到API/開發者部分,生成/創建泛用訪問令牌,複製並儲存該令牌,然後粘貼到外掛設置中。
- TinyURL: 登入TinyURL帳戶,打開開發人員/API或API設置部分,生成API密鑰並儲存後粘貼到外掛設置中。
- Rebrandly: 登入Rebrandly帳戶,在儀表板中找到開發者/API部分,生成API密鑰後儲存並粘貼到外掛設置中。
4. 保護 API Token 的最佳做法是什麼?
- 將 token 視為機密,不要提交到公共儲存庫;僅存儲在外掛設置中,永遠不要在前端HTML中顯示;如果服務提供者允許,限制 token 權限;定期更替(撤銷/再生成)token。
5. Bitly 提供了哪些外部服務資訊?
- API URL: https://dev.bitly.com/api-reference/
- 服務目的: 生成Bitly的短連結。
- 發送的數據: 原始URL + API token。
- 服務條款: https://bitly.com/pages/terms-of-service
- 隱私政策: https://bitly.com/pages/privacy

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「All In One Link Shortener」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

All In One Link Shortener allows you to easily create short links for posts, pages, or any URL on your WordPress site. It supports multiple link shortening services including Bitly, TinyURL, Rebrandly, is.gd, t.ly and cutt.ly. You can generate short links using a shortcode and quickly copy them in the admin area.
This plugin is lightweight, fully compatible with WordPress, and provides an intuitive interface in the admin dashboard.
Features

Automatic shortlink generation on publish/update.
Supports providers: Bitly, TinyURL, Rebrandly, cutt.ly, is.gd, t.ly or native WordPress permalinks.
Admin column with copy-to-clipboard button.
Regenerate shortlinks via post actions or bulk actions.
WP-CLI support for developers.
Shortcode [aiols_shortlink id="123"].
API token setup in plugin settings.

How to Generate API Tokens
Bitly (Generic Access Token)

Sign in at Bitly.
Open Settings → API / Developer section.
Click “Generic Access Token” → Generate/Create.
Re-enter password if prompted.
Copy and store the token securely.
Paste the token in plugin settings → Save Changes.

TinyURL (API Key)

Sign in at TinyURL.
Open Developer / API or API Settings.
Click “Create API Key” and follow prompts.
Copy the generated key and store securely.
Paste into plugin settings → Save Changes.

Rebrandly (API Key)

Sign in at Rebrandly.
Open Dashboard → Developer / API section.
Click “Create New API Key” and follow prompts.
Copy and store the key securely.
Paste into plugin settings → Save Changes.

Cutt.ly (API Key)

Sign in at Cutt.ly.
In the left sidebar, go to API → API Key.
Your API Key will be visible on the right side under your account information.
If you don’t have one, click Generate API Key to create a new key.
Copy the generated key and store it securely.
Paste it into your plugin settings → Save Changes.

is.gd (No API Key Required)

Visit is.gd
You don’t need to create an account or API key — is.gd’s shortening service is open for public use.
To shorten a link using the API, simply use the following URL format: https://is.gd/create.php?format=json&url=YOUR_LONG_URL.
Replace YOUR_LONG_URL with the actual link you want to shorten.
You can test this directly in your browser or use it programmatically via your plugin.
For full API documentation, visit is.gd API Reference.

T.LY (API Key Required)

Visit T.LY and create a free account.
Generate your API key from your T.LY Dashboard.
To shorten a link using the API, send a POST request to https://api.t.ly/api/v1/link/shorten with your long URL and API token.
The API will return a JSON response containing short_url. Use this value as the shortened link.
For full API documentation, visit T.LY API Docs.

Security & Best Practices

Treat tokens as secrets; do not commit to public repositories.
Store only in plugin settings; never print in frontend HTML.
Limit token permissions if the provider allows.
Rotate (revoke/regenerate) tokens periodically or if compromised.

External Services

Bitly

API URL: https://dev.bitly.com/api-reference/
Purpose: Generate short links using Bitly.
Data Sent: Original URL + API token.
Terms of Service: https://bitly.com/pages/terms-of-service
Privacy Policy: https://bitly.com/pages/privacy

TinyURL

API URL: https://tinyurl.com/app/dev
Purpose: Generate short links using TinyURL.
Data Sent: Original URL + API key.
Terms of Service: https://tinyurl.com/app/terms
Privacy Policy: https://tinyurl.com/app/privacy-policy

Rebrandly

API URL: https://developers.rebrandly.com/reference/createlink
Purpose: Generate short links using Rebrandly.
Data Sent: Original URL + API key.
Documentation: https://developers.rebrandly.com/docs/get-started
Terms of Service: https://www.rebrandly.com/terms
Privacy Policy: https://cutt.ly/privacy

cutt.ly

API URL: https://cutt.ly/api-documentation/regular-api
Purpose: Generate short links using cutt.ly.
Data Sent: Original URL + API key.
Documentation: https://cutt.ly/api-documentation/regular-api
Terms of Service: https://cutt.ly/terms
Privacy Policy: https://cutt.ly/privacy
Contact us : https://cutt.ly/contact

is.gd API Information (No API Key Required)

API URL: https://is.gd/create.php?format=json&url=YOUR_LONG_URL
Purpose: Generate short links without requiring an API key.
Data Sent: Original long URL (no authentication required).
Documentation: https://is.gd/developers.php
Terms of Service: https://is.gd/terms.php
Privacy Policy: https://is.gd/privacy.php
Contact Us: https://is.gd/contact.php

T.LY API Information (API Key Required)

API URL: https://t.ly/docs
Purpose: Generate short links without requiring an API key.
Data Sent: Original long URL (no authentication required).
Documentation: https://t.ly/docs
Terms of Service: https://t.ly/terms
Privacy Policy: https://t.ly/privacy
Contact Us: https://t.ly/contact

Open Source

GitHub repository: https://github.com/shitalparmar443/all-in-one-link-shortener
Contributions via pull requests are welcome.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon