跳到内容

Kina Shortlink Converter

v1.3.0

marsdream · 2026年11月18日 上架

Convert external links in posts and comments to short links with one click, and keep every destination under your control.

正在使用
10 以下
评分
暂无
累计下载
109
最近更新
2026年11月18日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The "External links to short links" row action on the posts list screen.
The "External links to short links" row action on the posts list screen.
The "External links to short links" bulk action on the posts list screen.
The "External links to short links" bulk action on the posts list screen.
The "External links to short links" metabox in the post editor sidebar, showing how many external links the post contains.
The "External links to short links" metabox in the post editor sidebar, showing how many external links the post contains.
The same metabox after a conversion: the count drops to zero and the time of the last conversion is shown.
The same metabox after a conversion: the count drops to zero and the time of the last conversion is shown.
The "Restore original content" button in the metabox, which brings the original text back after a conversion.
The "Restore original content" button in the metabox, which brings the original text back after a conversion.
The "Convert to short link" row action on the comments list screen (secondary feature).
The "Convert to short link" row action on the comments list screen (secondary feature).
The "Shorten links (bulk)" bulk action on the comments list screen (secondary feature).
The "Shorten links (bulk)" bulk action on the comments list screen (secondary feature).
The settings screen with v.gd selected: only the "Slug prefix" field is shown, everything that provider does not need is hidden.
The settings screen with v.gd selected: only the "Slug prefix" field is shown, everything that provider does not need is hidden.

Kina Shortlink Converter lets you turn external links into short links directly from the post editor or the comments list, without opening another page or editing posts by hand.

Core feature: convert external links in post content (added in 1.1.0)

  • An “External links to short links” metabox in the post/page editor sidebar converts every external link in the current post.
  • A row action “External links to short links” on the posts list converts a single post.
  • A bulk action “External links to short links” converts many posts at once.
  • The original content is backed up automatically and can be restored with one click.
  • Identical URLs within one post are only sent to the API once. When a post has more than 200 unique links, the number of skipped links is reported.

Secondary feature: convert external links in comments

  • A row action “Convert to short link” on the comments list plus a bulk action, so spam comments carrying promotional URLs can be shortened while you moderate them.

Converting a link sends the original URL to the short link service you configured.

Highlights:

  • One-click conversion in post content: metabox in the editor, row action and bulk action on the list screen. Everything goes through admin-post with a nonce, no JavaScript required.
  • Bulk-convert existing content: process many posts in one go and change where a link points without reopening every post.
  • Automatic backup and restore: the original content is stored in postmeta before the first conversion and can be restored with one click.
  • Comment conversion: row action and bulk action on the comments list.
  • Configurable providers: kina.men (Sink) and v.gd (no account, no API key) are built in; a self-hosted Sink instance or any custom service implementing the same Sink API also works.
  • Only the fields you need: switching provider hides the inputs you do not need – v.gd needs no service URL and no API key, while a custom service needs both.
  • Nothing happens automatically: links are converted only when you click the button, so the behaviour is fully predictable.
  • Safe by design: the API key is stored in site settings and never printed to the front end; every action verifies a nonce and the user’s capabilities.

Common uses:

  • Replace every external link in published posts with a short link and manage the destinations in one place.
  • Deal with AI-generated spam comments and promotional comments.
  • Share links to your own articles through a short link, so crawlers do not hit the target URL directly.

External services

This plugin connects to an external short link service to create short links. The default service is Sink (https://kina.men/), and you may also configure a self-hosted Sink instance, any custom service that implements the same Sink API, or v.gd, a public short link service which requires no account or API key.

When the administrator clicks “Convert to short link” (on posts or comments), the plugin sends the following data to the configured service:

  • For posts: all external URLs found in the post content (<a> href values).
  • For comments: the original URL from the commenter’s website field (comment_author_url), and optionally external URLs in the comment content (only when the “Also convert external links in comment content” setting is enabled).
  • Admin-configured tags and a fixed description string.

Data is sent only when an admin actively triggers conversion. The plugin does not automatically send data when posts or comments are created.

Sink is open source software (https://github.com/ccbikai/Sink); you can run your own instance instead of using a hosted one. The data you send is stored by the configured service and governed by that service operator’s own terms and privacy practices; this plugin has no control over it. Only convert URLs you are comfortable sharing with the configured service.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums