Shorten with iShort

설명

Shorten with iShort lets you shorten any URL right inside the WordPress post editor — no copy-pasting between tabs.

Features:

  • Classic Editor (TinyMCE) — icon button in the editor toolbar. Select a URL, click the button, and it’s instantly replaced with a short link.
  • Gutenberg / Block Editor — inline toolbar button. Select a URL in any text block and shorten it in one click.
  • Meta box — “Shorten post URL” button in the post sidebar. Shortens the current post’s URL and saves the result for later copying.
  • Works on all post types — posts, pages, custom post types.
  • Disabled for drafts — the meta box button is disabled until the post is published.
  • Settings page — one field (API token) and a “Test Connection” button. Includes a direct link to get your token.

External service:

This plugin connects to iShort.su (https://ishort.su) to shorten URLs. An API token from iShort.su is required. Requests are only sent when you explicitly click a shortening button — no background tracking or data collection.

  • iShort Privacy Policy: https://ishort.su/policy
  • iShort Terms of Service: https://ishort.su/offer

스크린샷

설치

  1. Upload the shorten-with-ishort folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings iShort and enter your API token.
  4. Get your token at https://ishort.su/user/api-clients

FAQ

Where do I get an API token?

Register at https://ishort.su and go to https://ishort.su/user/api-clients to create an API token.

Does the plugin work without an account?

No. An iShort.su account and API token are required.

Which editors are supported?

Both Classic Editor (TinyMCE) and Gutenberg (Block Editor) are supported.

Can I shorten URLs that are already short links?

Yes, already-shortened URLs can be re-shortened.

What happens if the API token is not configured?

You will see a message with a link to the plugin settings page.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Shorten with iShort”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Shorten with iShort”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Shorten with iShort”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.2

  • Fix: Classic Editor toolbar button was rendered invisible (blank icon) because the plugin relied on a custom html render option not supported by TinyMCE 4. The button now uses a standard image icon.
  • Fix: Gutenberg toolbar button never appeared — registerFormatType silently refused to register the format because className was null instead of a string.
  • Fix: the Classic Editor and Gutenberg scripts both localized data into the same global variable name (lsishort), which could silently overwrite each other’s data. Gutenberg now uses its own lsishortGutenberg variable.
  • Fix: the Gutenberg button never actually shortened anything — it called the AJAX endpoint via wp.apiFetch, which sends a JSON body, while admin-ajax.php only reads standard form-encoded $_POST data. The request now uses a plain fetch() call with a form-encoded body.
  • When the iShort API rejects the request as unauthenticated (e.g. an expired or revoked token), all three error messages (Classic Editor, Gutenberg, meta box) now include a link to the plugin’s settings page.
  • The TinyMCE plugin script is now cache-busted with the plugin version.

1.0.0

  • Initial release.
  • Classic Editor (TinyMCE) toolbar button.
  • Gutenberg inline toolbar button.
  • Meta box with post URL shortening and copy button.
  • Settings page with API token field and connection test.
  • English and Russian translations.