lihi Short URL

lihi Short URL

Details
View on WordPress

lihi Short URL integrates the lihi short-link service into the WordPress admin. With one click on a “lihi” button next to any post, page, custom post type, or media item, the plugin asks the lihi service for a short URL (creating one on first use, reusing it on subsequent clicks) and copies it to the clipboard. This plugin is open source and maintained at weedgood/lihi-wp-plugin.

The plugin runs only inside wp-admin; it adds no front-end output and enqueues no scripts on public pages.

Features

  • Adds a Short URL column with a “lihi” button to all public post-type list screens (posts, pages, custom post types).
  • Adds the same button to the Media Library list view and to the attachment detail panel in the media grid view.
  • One-click copy: generates the short URL on demand via AJAX and writes it to the clipboard.
  • Reuses an existing short URL whenever one already exists for the item, so repeated clicks are idempotent.
  • Settings page under Settings lihi Short URL for entering the lihi account email and choosing a redirect domain.
  • Email verification is round-tripped through the lihi auth service before being saved, so an address the service rejects never becomes the active configuration.
  • Per-account state (auth token and saved redirect domain) is automatically cleared whenever the configured email changes.
  • Localised; ships with Traditional Chinese (zh_TW).

External services

This plugin connects to the lihi short URL service to authenticate the site administrator and to create or look up short URLs. Without an internet connection the plugin cannot function.

Service: lihi authentication (https://w.lihidev.com)

  • When data is sent: when the administrator saves an email address on the settings page (Settings lihi Short URL), and on the first short-URL request after the cached auth token expires.
  • What is sent: the administrator’s email address and the site’s hostname (sent as the HTTP Host header so the lihi service can identify the tenant).

Service: lihi short URL API (https://app.lihidev.com)

  • When data is sent: when the administrator opens the settings page after configuring an email (to display account info), and when the administrator clicks a “lihi” button to generate or look up a short URL.
  • What is sent: the bearer token returned by the auth service, the post or attachment URL (permalink or attachment file URL), the post type, the post ID, the configured redirect domain, and the site’s hostname (included in tags).

By using the plugin you agree that the data above is transmitted to the lihi service. Please review the lihi service’s legal documents:

  • Terms of Use: https://knowledge.lihi.io/terms/
  • Privacy Policy: https://knowledge.lihi.io/privacy-policy/

Details

Plugin code:
lihi-short-url
Plugin version:
1.0.1
Author:
Outdated:
No
WP version:
5.5 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.0
Total installations:
0
Last updated:
2026-06-08
Rating:
Times rated:
0
admin
lihi
media
short-url
url-shortener