跳到内容

Shortlinks By Path

v0.1

aizatto · 2010年4月24日 上架

Shortlinks By Path hooks into the WordPress filter get_shortlink to only return the path for a shortlink. This makes it easier to retrieve the shortli …

正在使用
10 以下
评分
暂无
累计下载
1,532
最近更新
2010年4月25日
需要 WordPress 3+已测试到 3

贡献者

截图

Shortened Path
Shortened Path

Shortlinks By Path hooks into the WordPress filter get_shortlink to only return the path for a shortlink. This makes it easier to retrieve the shortlink url with an absolute path minus the domain name.

By default WordPress returns the full path to your post when clicking “Get Shortlink”. Shortlinks By Path returns only the path. For example, by default WordPress would return http://blog.aizatto.com/?p=3565 , with Shortlinks By Path enabled WordPress returns /?p=3565 .

How It Works

Shortlinks By Path hooks into the WordPress filter get_shortlink to only return the path for a shortlink.

Why I Created It

I needed WordPress to return the path for a given post because it was easier to migrate WordPress installations across different domains, as there would be no broken internal links. For example, migrating from a development internal site, to a production live site.

Plums

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

导航

说明

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

© 2026 Plums