內容簡介
總結文案:Short Links for M8C 將您的 WordPress 網站連接到 M8C 短網址服務。該外掛與 M8C 官方無關,可從 WordPress 管理員直接創建短網址,或在編輯器中只需點擊一下便為任何文章、頁面或 WooCommerce 產品生成短網址。
問題與答案:
1. 如何在 WordPress 管理員中創建短網址?
- 前往 Short Links for M8C → Create Short Link,輸入任何網址,即可獲得一個短網址。
2. 如何在文章、頁面和產品上添加短網址 Metabox?
- 編輯文章、頁面或 WooCommerce 產品時,在側邊欄中會出現「Short Links for M8C」的 Metabox。只需點擊一下,即可為該內容的網址創建短網址,保存後在下次訪問時顯示。
3. 如何查看所有透過本站創建的短網址?
- 在「My Links」中,可以按頁面列出所有透過該網站(透過 API)創建的短網址,並可複製按鈕和點擊計數,即時從 M8C 伺服器獲取。
4. 如何設置 Short Links for M8C 外掛?
- 在 Short Links for M8C → Settings 中輸入 M8C API base URL 和您的 API 令牌(從 M8C 面板 → Developers 獲取)。
5. 需要哪些條件才能使用此外掛?
- 必須擁有 M8C 服務的免費帳戶(m8c.ir),以及從 M8C 獲取的 API 令牌(Panel → Developers)。
6. WooCommerce 上需要如何操作?
- 如果啟用了 WooCommerce,則短網址 Metabox 也將在產品編輯畫面上可用。
7. 如何實現多語言支持?
- 外掛使用 short-links-for-m8c 文本域,預設管理介面為波斯語(Farsi)。您可以通過 /languages 資料夾或一個翻譯外掛添加翻譯。
外掛標籤
開發者團隊
② 後台搜尋「Short Links for M8C — لینک کوتاه」→ 直接安裝(推薦)
原文外掛簡介
Short Links for M8C connects your WordPress site to the M8C link shortener service. This plugin is not officially affiliated with M8C. Create short links directly from the WordPress admin, or generate a short link for any post, page, or WooCommerce product with one click from the editor.
Features:
Create short links from the admin menu — Go to Short Links for M8C → Create Short Link, enter any URL, and get a short link.
Metabox on posts, pages, and products — When editing a post, page, or WooCommerce product, a “Short Links for M8C” metabox appears in the sidebar. One click creates a short link for that content’s URL and saves it so it’s shown on the next visit.
My Links — View all short links created via this site (via the API) in a paginated list with copy buttons and click counts, fetched live from the M8C server.
Simple setup — Enter the M8C API base URL and your API token (from the M8C panel → Developers) in Short Links for M8C → Settings.
Requirements:
A free account on the M8C service (m8c.ir).
An API token from M8C (Panel → Developers).
WooCommerce: If WooCommerce is active, the short-link metabox is also available on product edit screens.
Multilingual
The plugin uses the short-links-for-m8c text domain. The admin interface is in Persian (Farsi) by default; you can add translations via the /languages folder or a translation plugin.
