Linux 软件免费装

lihi Short URL

开发者 lihidev
更新时间 2026年6月23日 13:31
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

media admin short url url shortener lihi

下载

1.0.1

详情介绍:

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

安装:

  1. Upload the lihi-short-url folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings → lihi Short URL.
  4. Enter your lihi account email address and click Save & Verify. A verification email will be sent if the address is not yet verified.
  5. Once the email is verified, choose a Redirect domain from the dropdown and click Save.
  6. The "lihi" button now appears in a Short URL column on every public post-type list screen and in the Media Library.
The plugin requires the manage_options capability to view or change settings. Any logged-in user can use the "lihi" button on screens they are otherwise allowed to access.

升级注意事项:

1.0.1 Updates WordPress.org release metadata and package paths; no action required. 1.0.0 Initial release.

常见问题:

Why don't I see the "lihi" button in my list tables?

The UI hooks only register once the plugin is fully configured — both the lihi email and the redirect domain must be set. Open Settings → lihi Short URL to verify the email and choose a redirect domain.

What happens if I change the email address?

Changing the email clears the cached auth token and the previously selected redirect domain, because both belong to the previous account. After saving a new email and verifying it, choose a redirect domain again on the settings page.

How do I disable the plugin without deactivating it?

Clear the email field on Settings → lihi Short URL and click Save & Verify. With no email configured the plugin stops registering its admin UI.

Does the plugin run on the front-end?

No. The plugin returns early on non-admin requests — it only adds admin UI and an admin-ajax.php handler.

Which post types are supported?

All post types registered with public => true, plus the Media Library (both list mode and the grid view's attachment details panel).

Does the plugin store data in my database?

Yes — two options (lihi_email, lihi_domain) and one transient (lihi_token). All three are removed when the plugin is deleted from the Plugins screen.

更新日志:

1.0.1 1.0.0