pfefferle / wordpress-ownyourlinks
hum的个人URL缩短插件,用于WordPress
dev-main
2024-07-02 21:53 UTC
Requires
- php: >=5.6.0
- composer/installers: ^1.0 || ^2.0
This package is auto-updated.
Last update: 2024-09-02 22:11:45 UTC
README
“拥有您的链接”是指在您自己的网站上创建链接,这些链接将重定向到您拥有的其他属性,例如社交媒体账户或您在其他网站上创建的内容。
-- https://indieweb.org/own_your_links
依赖关系
此插件基于出色的hum插件,WordPress的“个人URL缩短器”: https://github.com/willnorris/wordpress-hum
配置
通过定义常量来定义代码托管(CVS)或微博服务,例如在您的wp-config.php
文件中
define( 'OWNYOURLINKS_CODE_URL', 'https://example.com/username/' ); define( 'OWNYOURLINKS_MICROBLOGGING_URL', 'https://example.org/username/' );
更多内容即将到来。
用法
配置常量正确后...
以下是我的示例
define( 'OWNYOURLINKS_CODE_URL', 'https://github.com/pfefferle/' ); define( 'OWNYOURLINKS_MICROBLOGGING_URL', 'https://twitter.com/pfefferle/' );
...您可以使用以下URL
- GitHub仓库:https://notiz.blog/c/wordpress-webmention
- GitHub个人资料:https://notiz.blog/c/
- 推文:https://notiz.blog/t/1530981048145813506
- Twitter个人资料:https://notiz.blog/t/
- 本地微博帖子:https://notiz.blog/t/5FB