Title: Kina Shortlink Converter
Author: marsdream
Published: <strong>November 18, 2026</strong>
Last modified: November 18, 2026

---

Search plugins

![](https://ps.w.org/kina-shortlink-converter/assets/banner-772x250.png?rev=3809370)

![](https://ps.w.org/kina-shortlink-converter/assets/icon-256x256.png?rev=3809370)

# Kina Shortlink Converter

 By [marsdream](https://profiles.wordpress.org/marsdream/)

[Download](https://downloads.wordpress.org/plugin/kina-shortlink-converter.1.3.0.zip)

 * [Details](https://wordpress.org/plugins/kina-shortlink-converter/#description)
 * [Reviews](https://wordpress.org/plugins/kina-shortlink-converter/#reviews)
 *  [Installation](https://wordpress.org/plugins/kina-shortlink-converter/#installation)
 * [Development](https://wordpress.org/plugins/kina-shortlink-converter/#developers)

 [Support](https://wordpress.org/support/plugin/kina-shortlink-converter/)

## Description

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.

## Screenshots

[⌊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” 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” 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 “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 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 “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 “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 “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.⌉[

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 kina.men selected: the service URL, API key and default
tags fields appear for that provider.⌉⌊The settings screen with kina.men selected:
the service URL, API key and default tags fields appear for that provider.⌉[

The settings screen with kina.men selected: the service URL, API key and default
tags fields appear for that provider.

## Installation

 1. Go to Plugins -> Add New -> Upload Plugin in the WordPress admin.
 2. Choose `kina-shortlink-converter.zip`, upload it and activate the plugin.
 3. Go to Settings -> Kina Shortlink Converter, pick a short link provider and fill
    in the fields it asks for (v.gd needs no API key).
 4. Open any post in the editor to see the “External links to short links” metabox 
    in the sidebar, or use the row action and bulk action on the Posts list screen.

## FAQ

### Does it need any extra dependencies?

No. The plugin uses the WordPress HTTP API and the WordPress default database only,
and loads no third-party scripts or styles.

### Which short link services are supported?

kina.men (Sink) and v.gd are built in. Any service compatible with the Sink API (`
POST /api/link/create` with a Bearer token) can be used through the “Custom service”
option. v.gd needs no account and no API key: select “v.gd” in the settings screen
and save.

### What are the rules for a custom v.gd suffix?

A custom v.gd suffix may only contain lowercase letters, digits and underscores;
hyphens are not allowed. The plugin automatically replaces the hyphen in the generated“
prefix-random” string with an underscore. If you leave the suffix empty (the default“
automatic short code” mode), none of these restrictions apply.

### Does converting a post change its review status?

No. The plugin only replaces the `href` value of `<a>` tags inside `post_content`.
The title, categories and status all stay the same (the modification date is updated
as usual).

### Which external links get converted?

Every `href` value of an `<a>` tag in the post content, provided that it uses http/
https and its host is neither your own site nor the short link service domain. Relative
links, `#` anchors and `mailto:`/`tel:` links are skipped.

### Will links that are already short links be converted again?

No. URLs that already belong to the short link service domain are excluded automatically.

### Does the same URL in one post get sent to the API more than once?

No. The plugin deduplicates URLs within a single post, so each unique URL results
in exactly one API call.

### How many links can be converted at most?

The limit is 200 unique URLs per post. Anything above that is skipped, and the result
message reports how many links were skipped.

### Does conversion also replace the link text?

No. The plugin only replaces the `href` target of the `<a>` tag and leaves the link
text exactly as the author wrote it. This also holds when the link text happens 
to be a full URL.

### Does conversion trigger other plugins?

Post content is written silently: only the `post_content` field is updated, so hooks
such as `save_post` and `post_updated` are not fired and no revisions are created.
The benefit is fewer conflicts with third-party scripts already loaded in the admin
editor. The trade-off is that SEO plugins do not re-analyse the post body automatically;
save the post once after converting if you want the SEO data refreshed.

### Where is the API key stored?

In the WordPress option `kisc_settings`. It is removed automatically when the plugin
is uninstalled.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Kina Shortlink Converter” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ marsdream ](https://profiles.wordpress.org/marsdream/)

[Translate “Kina Shortlink Converter” into your language.](https://translate.wordpress.org/projects/wp-plugins/kina-shortlink-converter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/kina-shortlink-converter/),
check out the [SVN repository](https://plugins.svn.wordpress.org/kina-shortlink-converter/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/kina-shortlink-converter/)
by [RSS](https://plugins.trac.wordpress.org/log/kina-shortlink-converter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.0

 * Renamed the plugin to “Kina Shortlink Converter” and moved it to its own slug,`
   kina-shortlink-converter`.
 * Changed: every function, class, constant, option name, transient, post meta key,
   admin action and shortcode now carries the `kisc_` / `KISC_` prefix, so the plugin
   cannot clash with other plugins that use generic names.
 * Compatibility: settings saved by earlier versions are migrated automatically.
   The plugin reads the new `kisc_settings` option first and falls back to the previous`
   csc_settings` option, so the service address and API key of existing installs
   are preserved. The same applies to the post content backups in the `_kisc_original_content`
   post meta, which falls back to `_csc_original_content`.
 * Improvement: the contributors list now includes `marsdream`, the account that
   owns the plugin.
 * Improvement: the plugin header no longer declares an author name or author URI;
   WordPress.org shows the submitting account instead.
 * Improvement: short links in the readme now point at the full destination URL 
   instead of a shortened link.
 * Improvement: the compatibility information is now a section inside the settings
   screen instead of an admin-wide notice, so the plugin no longer shows any notice
   outside the screens where it acts.
 * Internationalisation: the plugin no longer ships a bundled Simplified Chinese
   translation. Translations are handled by translate.wordpress.org, so the plugin
   package contains only the translatable source strings.

#### 1.2.5

 * Internationalisation: the whole plugin interface is now in English, matching 
   the English readme. All admin strings (settings screen, post editor panel, list
   actions, notices and error messages) were converted to translatable English source
   strings.
 * Internationalisation: a Simplified Chinese translation (`shortlink-converter-
   zh_CN`) is shipped, so Chinese users still get a Chinese interface.
 * Improvement: `languages/shortlink-converter.pot` was regenerated with `wp i18n
   make-pot` against the new English source strings.
 * Improvement: the plugin UI no longer contains hard-coded Chinese text, so every
   visible string can now be translated.

#### 1.2.4

 * Improved: shortened the plugin short description to stay within the 150-character
   limit used by the WordPress.org plugin directory, and aligned the plugin header
   description with it.

#### 1.2.3

 * Performance: converting post content no longer calls `wp_cache_flush()` to clear
   the whole object cache. Only the oEmbed cache and the postmeta cache group of
   that single post are invalidated. On multisite or high-traffic sites, flushing
   the entire cache is far too broad.
 * Performance: the third-party script scan behind the compatibility notice is now
   cached in a transient for 4 hours, so the settings screen no longer rescans every
   JavaScript file in the plugin directory on each visit. The cache key includes
   a fingerprint of the plugin directories, so installing, removing or updating 
   a plugin invalidates it automatically.
 * Improvement: `languages/shortlink-converter.pot` was regenerated with `wp i18n
   make-pot` and now contains every string added in 1.2.0 – 1.2.2.
 * Improvement: removed the `Update URI` plugin header, which is not allowed for
   plugins hosted on WordPress.org.
 * Improvement: the readme is now fully in English, as required by the current WordPress.
   org guidelines.
 * Improvement: the plugin description header is now in English as well.
 * Improvement: removed the explicit `load_plugin_textdomain()` call; WordPress 
   loads translations from the text domain automatically.
 * Improvement: strings with more than one placeholder now use positional placeholders(`%
   1$d`, `%2$s`), so translators can reorder them.
 * Documentation: the description of screenshot 5 now reflects the settings screen
   as it looks since 1.2.2, with fields shown and hidden per provider.

#### 1.2.2

 * Added: the settings screen now shows and hides inapplicable fields depending 
   on the selected provider. Selecting v.gd hides “Service URL”, “API Key” and “
   Default tags”, leaving only the “Slug prefix” that is actually needed; switching
   back to kina.men or a custom Sink instance restores those fields.
 * Added: the provider metadata now carries `need_url` / `need_tags` / `need_slug`/`
   note`, so field visibility is driven by metadata and adding a provider no longer
   requires front-end code changes.
 * Improved: switching provider shows a short note about that provider (for example,
   v.gd requiring no account and no API key).
 * Fixed: the settings screen was not loading its interaction script, so the dynamic
   field behaviour above never worked. The screen slug was checked against `shortlink-
   converter` while the registered slug is `csc-settings`, so the condition was 
   never true. The real slug is now used.
 * Security: hidden inputs are still submitted, so on save the server force-writes
   the official URL for fixed-address providers (kina.men / v.gd) and clears the
   API key for keyless providers. The checks cannot be bypassed by editing the page.
 * Progressive enhancement: if the front-end script fails to load, all fields stay
   visible and the plugin keeps working.

#### 1.2.1

 * Fixed: the query string was not URL-encoded when creating a v.gd short link, 
   so target URLs containing query parameters were silently truncated. The old implementation
   used the WordPress `build_query()` function, which builds an HTML form action
   and performs no URL encoding. It now uses `_http_build_query()`.
 * Fixed: a `#fragment` in the target URL was turned into a URL fragment and never
   reached the server, and a space in the URL made v.gd answer “Please enter a valid
   URL to shorten”.
 * Fixed: switching to a keyless provider now clears any previously stored API key,
   so an old provider’s key does not linger in the site settings.

#### 1.2.0

 * Added: built-in short link provider v.gd, which needs no account and no API key.
   Select “v.gd” in the settings screen and save; there is nothing else to fill 
   in.
 * Added: provider metadata now supports the protocol type (`type`), whether a key
   is required (`need_key`) and the allowed short link hosts (`hosts`).
 * Improved: short link domain validation now matches against a per-provider allow
   list (subdomains included), which prevents the server from returning a short 
   link pointing at an arbitrary site. Providers without an allow list keep the 
   previous rule that the short link domain must equal the domain of the configured
   service URL.
 * Fixed: switching to a keyless provider clears the stored API key, so the previous
   provider’s key does not linger in the site settings.
 * Fixed: `wp_parse_url()` returns an array without the `scheme` and `host` keys
   for input such as `javascript:`, which raised a warning on PHP 8 (the warning
   output polluted the settings read). Guards are now in place.
 * Fixed: the `CSC_VERSION` constant was stuck at 1.1.1 and did not follow the plugin
   version. It is now kept in sync with `Version:`.
 * Improved: the slug prefix and the random suffix may keep underscores, since a
   custom v.gd suffix contains underscores but no hyphens.

#### 1.1.2

 * Fixed: converting a comment redirected to a 404 page. The redirect passed a source
   path that already contained the `/wp-admin/` prefix to `admin_url()`, producing
   a duplicated prefix such as `/wp-admin/wp-admin/comment.php`. Both entry points
   are fixed – the comment edit screen and the row action on the comments list –
   while the post side is unaffected (it uses the official `wp_get_referer()`).

#### 1.1.1

 * Fixed: post links became malformed values such as `%22https://...%22` after conversion.
   The root cause was double escaping of the body in the silent write path (`wp_slash()`
   on top of `$wpdb`‘s own escaping). This is now corrected.
 * Fixed: conversion only replaces the `href` and no longer rewrites the link text
   the author wrote; this also holds when the link text is a full URL.
 * Fixed: malformed markup of the form `https://<a href="...">` (a bare protocol
   prefix left outside the tag) is now cleaned up during conversion.
 * Added: a “Convert to short link” button on the single comment edit screen.
 * Added: the button turns into “Converting…” and shows the built-in WordPress spinner
   while it works, so a slow request does not look like a frozen page.
 * Added: the “Jump to the posts list after conversion” setting, so you can go straight
   back to the list and continue with the next post.
 * Improved: post content and comment fields are written silently, which lowers 
   the chance of conflicts with third-party plugins already loaded in the editor.
 * Improved: a new editor compatibility diagnostics page lists third-party scripts
   that may conflict with the admin editor.

#### 1.1.0

 * Added: one-click conversion of external links in post content, with three entry
   points – an editor metabox, a list row action and a bulk action.
 * Added: the original post content is backed up automatically (in the `_csc_original_content`
   postmeta) and can be restored with one click.
 * Added: a bulk action “External links to short links” on the posts list.
 * Added: a limit of 200 unique URLs per post; the result message reports how many
   links were skipped.
 * Added: a row action “External links to short links” on the posts list, shown 
   only when the post contains external links.
 * The secondary feature is unchanged: a “Convert to short link” row action and 
   a bulk action on the comments list.
 * The plugin is now named Shortlink Converter and the text domain is shortlink-
   converter.

#### 1.0.0

 * First stable release.
 * A “Convert to short link” row action on the comments list.
 * A “Convert to short link” bulk action.
 * Settings screen: provider dropdown, service URL, API key, tags, slug generation
   and the “keep the original link” option.
 * By default the commenter’s website field (`comment_author_url`) is converted;
   converting external links in the comment body is optional.
 * Support for kina.men (Sink) and custom Sink-compatible services.

## Meta

 *  Version **1.3.0**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [comments](https://wordpress.org/plugins/tags/comments/)[posts](https://wordpress.org/plugins/tags/posts/)
   [shortlink](https://wordpress.org/plugins/tags/shortlink/)[url](https://wordpress.org/plugins/tags/url/)
 *  [Advanced View](https://wordpress.org/plugins/kina-shortlink-converter/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/kina-shortlink-converter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/kina-shortlink-converter/reviews/)

## Contributors

 *   [ marsdream ](https://profiles.wordpress.org/marsdream/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/kina-shortlink-converter/)