
內容簡介
這個外掛程式正在建置當中,開發工作仍在不斷進行中。
這個 WordPress 儀表板介面可供管理自行託管的Shlink URL 縮短器。
從管理介面建立並編輯 Shlinks 的短網址
選用選項,在新增文章時自動產生新的短網址
管理多個短網址,並分配一個預設網址
自動為每個短網址設定標籤,可使用過濾器勾選進行設定
自動調整長網址重新導向,並使用過濾器勾選進行自訂(例如加入查詢引數)
如已安裝,可與WordPress Sentry外掛相整合
過濾器勾選
smol_links_tags – 為每個已儲存的短網址指派標籤(預設:["smol-links-server:$hostname", "smol-links-user:$username"])
smol_links_long_url – 自動調整長網址重新導向
smol_links_manager_tabs – 自訂管理者標籤(陣列:[“標籤標籤” => [Shlink API 查詢]])
開發人員安裝
開發相依性資訊:
Node.js(測試版本為 v16)
Docker Desktop
建置並啟動:
./bin/build.sh
./bin/start.sh
運行測試:
docker-compose exec web composer --working-dir="/var/www/html/wp-content/plugins/smol-links" test
外掛標籤
開發者團隊
原文外掛簡介
A WordPress dashboard interface for managing a self-hosted Shlink URL shortener instance.
Create and edit Shlinks short links from a manager interface
Optionally generate new short URLs upon saving new posts
Manage multiple short URL domains, with an assigned default
Automatically tag each short link, configurable with a filter hook
Customize long URLs automatically using a filter hook (e.g., to add query arguments)
Integrates with WordPress Sentry plugin, if installed
Filter hooks
smol_links_tags – assigns tags to each saved short link (default: ["smol-links-server:$hostname", "smol-links-user:$username"])
smol_links_long_url – automatically adjust the long URL redirect
smol_links_manager_tabs – customizes the manager tabs (array: [“Tab label” => [Shlink API query]])
Developer setup
Developer dependencies:
node.js (tested on v20)
Docker Desktop
Build and start:
./bin/build
./bin/start
Running tests:
docker compose exec web composer --working-dir="/var/www/html/wp-content/plugins/smol-links" test
