[WordPress] 外掛分享: URL Shortener by Melk

WordPress 外掛 URL Shortener by Melk 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「URL Shortener by Melk」是 2026-01-25 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-26,距離現在已有 30 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

melksedeque |

外掛標籤

seo | permalink | shortlink | redirection | url shortener |

內容簡介

總結:URL Shortener by Melk 是一個輕量且高效的 WordPress 外掛,可自動為您的文章、頁面、分類、標籤和自訂文章類型生成短網址,非常適合在社交媒體和行銷材料中分享。

問題與答案:

1. 這個外掛可以自動生成短網址的時機是?
- 答:在發佈新文章時會自動生成短網址。

2. 這個外掛支援的內容類別有哪些?
- 答:它支援文章、頁面、分類、標籤以及自訂文章類型。

3. 有沒有快速複製短網址的功能?
- 答:有,使用者可以直接在後台中的文章/項目列表中按一個"複製"按鈕。

4. 這個外掛有批量生成短網址的工具嗎?
- 答:有,它提供工具可以一鍵生成舊內容的短網址。

5. 短網址的重定向速度如何?
- 答:它使用本機 WordPress 重寫規則實現快速重定向,不需要繁重的查詢。

6. 這個外掛的程式碼是否安全?
- 答:是的,它經過驗證並具有安全的程式碼,遵循 WordPress 最佳實踐。

原文外掛簡介

URL Shortener by Melk is a lightweight and efficient WordPress plugin that allows you to automatically generate short URLs for your posts, pages, categories, tags, and Custom Post Types. Ideal for sharing on social media and marketing materials.
Features:

Automatic Generation: Automatically creates short URLs when publishing new posts.
Comprehensive Support: Works with Posts, Pages, Categories, Tags, and Custom Post Types.
Quick Copy: “Copy” button directly in the post/term listing in the admin panel.
Bulk Generation: Tool to generate short URLs for old content with one click.
Performance: Fast redirection using native WordPress rewrite rules (no heavy queries).
Secure: Validated and secure code, following WordPress best practices.

Developer Notes

Namespace: Melk\\UrlShortenerByMelk.
Unique prefix: all functions, options, meta keys and hooks use the urlshbym_ prefix, following the WordPress Plugin Handbook recommendations to avoid naming collisions.
Options stored in the database:

urlshbym_enabled_post_types
urlshbym_enabled_taxonomies

Meta keys:

_urlshbym_short_code on posts
_urlshbym_short_code on terms (taxonomies)

Database table: {$wpdb->prefix}urlshbym_short_urls is created on activation to store the mapping between short codes and objects.
Main hook:

urlshbym_short_url_clicked — fired whenever a short URL is accessed, receiving the short code and the internal record ID.

Rewrite rules: short URLs are handled through a rewrite rule that maps patterns like /abc12 to index.php?urlshbym_short=abc12.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「URL Shortener by Melk」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Custom Post Type Permalinks 》自訂文章類型永久連結允許您編輯自訂文章類型的永久連結結構。, 更改自訂分類目錄的永久鏈接,以“example.org/post_type/taxonomy_name/term_slug̶...。
  • Permalink Manager Lite 》Permalink Manager 是一個高評價的 WordPress 永久連結編輯器,可讓使用者自定義文章、頁面和自訂文章型別的網址(專業版支援分類法)。若要讓您的網站被搜尋...。
  • Custom Permalinks 》name or slug), add the filter that looks like this:, function yasglobal_exclude_posts( $post ) {, // Replace '2' with ID of the post you want to ...。
  • FV Top Level Categories 》這是針對 WordPress 3.1 及以上版本修復「Top Level Category」外掛程式的修正版。此外掛程式的目的是提供和原來程式相同的功能,但在新版本的 WordPress 上...。
  • WP No Base Permalink 》該外掛能夠將分類基礎從您的分類永久連結中移除 (可選)。默認情況下啟用。, 該外掛能夠從您的分類永久連結中移除父級分類 (可選)。, 該外掛能夠將標籤基礎從...。
  • Remove CPT base 》從網址中移除自訂文章類型基本標誌, , 可以選擇特定的自訂文章類型, 自動重新導向舊的基本標誌到無基礎標誌, 。
  • Simple Post Type Permalinks 》輕鬆編輯自訂文章類型的永久網址結構。, 簡單文章類型永久連結比自訂文章類型永久連結更簡單而聰明。, 可用的標籤包括%post_id%,%postname%,%year%,%month...。
  • WP htaccess Control 》WP htaccess Control(也可以稱為 WP htaccess 和 Rewrite Control)提供了一個界面來自定生成WordPress的htaccess文件以及其永久鏈接(作者、分類、歸檔、分...。
  • Admin Slug Column 》這個外掛會在「所有文章」和「所有頁面」的 wp-admin 界面上新增一欄,顯示每一個文章或頁面的 URL 路徑和別名。如果某個頁面是某個父頁面的子頁面,也會顯示...。
  • Permalinks Customizer 》自定義永久網址助手(Permalinks Customizer)可為公開訪問的不同文章類型和分類定義不同的永久網址結構。您可以使用 WordPress 中已定義的標籤,如此處所述...。
  • Custom Permalink Editor 》, 這個外掛是由 Team KCG 開發,用來更改文章、頁面和自訂文章的 URL。, 這個外掛允許您編輯文章、頁面和自訂文章的永久連結。, 這個外掛不會更改佈景主題預...。
  • WP Permalink Translator 》允許管理員將永久連結翻譯成其他語言。, 開發, https://github.com/hossinasaadi/wp-permalink-translator/。
  • WP Category Permalink 》這個外掛讓你可以為你的文章選擇一個主要分類或分類法以便得到更好的永久連結和SEO效果。, 功能, 通常,你會選擇自訂結構 /%category%/%postname%/% 作為永久...。
  • Top Level Categories 》這個「Top Level Categories」外掛可以讓您移除類別頁面 URL 前面的字首。例如,您可以使用 http://fortes.com/work 代替 http://fortes.com/category/work ...。
  • External Permalinks Redux 》允許使用者指向 WordPress 物件(文章、頁面、自定義文章類型)至他們所選的 URL,特別適用於在迴圈中注入非 WordPress 內容。該物件在任何迴圈輸出中看起來...。

文章
Filter
Mastodon