AI助手支持GPT4.0
WordPress generates shortlinks for your posts and pages.
WordPress为您的帖子和页面生成短链接。
By default it uses the ?p= with the post ID added to it, but if you have a rather long domain name this isn’t very useful.
?p=
默认情况下,它使用?p = code>并添加了帖子ID,但是如果您的域名很长,那么它就不是很有用。If you use Bit.ly, this plugin will help you replace the shortlink WordPress generates with a proper Bit.ly shortlink.如果您使用 Bit.ly ,此插件将帮助您将WordPress生成的短链接替换为适当的Bit.ly短链接。 p>>This plugin uses the latest Bit.ly OAuth 2 draft specification API instead of its deprecated V3 API and enables you to use generic access token to automatically enable Bit.ly shortlinks in your entire multisite network without the need for each site user to此插件使用最新的Bit.ly OAuth 2草案规范API而不是其过时的V3 API,并允许您使用通用访问令牌在整个多站点网络中自动启用Bit.ly短链接,而无需每个站点用户have to tinker with any settings or authentication configurations.必须修改任何设置或身份验证配置。 p>
?p = code>并添加了帖子ID,但是如果您的域名很长,那么它就不是很有用。If you use Bit.ly, this plugin will help you replace the shortlink WordPress generates with a proper Bit.ly shortlink.如果您使用 Bit.ly ,此插件将帮助您将WordPress生成的短链接替换为适当的Bit.ly短链接。 p>>This plugin uses the latest Bit.ly OAuth 2 draft specification API instead of its deprecated V3 API and enables you to use generic access token to automatically enable Bit.ly shortlinks in your entire multisite network without the need for each site user to此插件使用最新的Bit.ly OAuth 2草案规范API而不是其过时的V3 API,并允许您使用通用访问令牌在整个多站点网络中自动启用Bit.ly短链接,而无需每个站点用户have to tinker with any settings or authentication configurations.必须修改任何设置或身份验证配置。 p>
If you use Bit.ly, this plugin will help you replace the shortlink WordPress generates with a proper Bit.ly shortlink.
如果您使用 Bit.ly ,此插件将帮助您将WordPress生成的短链接替换为适当的Bit.ly短链接。
p>
>
This plugin uses the latest Bit.ly OAuth 2 draft specification API instead of its deprecated V3 API and enables you to use generic access token to automatically enable Bit.ly shortlinks in your entire multisite network without the need for each site user to
此插件使用最新的Bit.ly OAuth 2草案规范API而不是其过时的V3 API,并允许您使用通用访问令牌在整个多站点网络中自动启用Bit.ly短链接,而无需每个站点用户
have to tinker with any settings or authentication configurations.
必须修改任何设置或身份验证配置。 p>
plugin
/wp-content/plugins/
plugin code>文件夹上载到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Insert this code to define your bit.ly generic access token in your wp-config.php at the end right above “That’s all, stop editing!在“代码” wp-config.php code>中的“最后,停止编辑!”后面插入此代码,以定义您的bit.ly通用访问令牌。Happy blogging.”:祝您博客愉快。”: p>define(‘BITLY_ACCESS_TOKEN’, ‘your_generic_access_token_goes_here’);定义(“ BITLY_ACCESS_TOKEN”,“ your_generic_access_token_goes_here”); p> li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Insert this code to define your bit.ly generic access token in your wp-config.php at the end right above “That’s all, stop editing!在“代码” wp-config.php code>中的“最后,停止编辑!”后面插入此代码,以定义您的bit.ly通用访问令牌。Happy blogging.”:祝您博客愉快。”: p>define(‘BITLY_ACCESS_TOKEN’, ‘your_generic_access_token_goes_here’);定义(“ BITLY_ACCESS_TOKEN”,“ your_generic_access_token_goes_here”); p> li>
Insert this code to define your bit.ly generic access token in your wp-config.php at the end right above “That’s all, stop editing!
wp-config.php
在“代码” wp-config.php code>中的“最后,停止编辑!”后面插入此代码,以定义您的bit.ly通用访问令牌。
Happy blogging.”:
祝您博客愉快。”: p>
define(‘BITLY_ACCESS_TOKEN’, ‘your_generic_access_token_goes_here’);
定义(“ BITLY_ACCESS_TOKEN”,“ your_generic_access_token_goes_here”); p>
li>
ol>
You can get your generic access token here: https://bitly.com/a/oauth_apps
您可以在此处获取通用访问令牌: https://bitly.com/a/oauth_apps
Install and set up your access token the same way as a single site installation but make sure you Network Activate the plugin.
以与单个站点安装相同的方式安装和设置访问令牌,但请确保您通过网络激活插件。 p>
I’ve included the function get_bitly($url) to help developers easily shorten URLs in their templates.
get_bitly($url)
我已包含函数 get_bitly($ url) code>,以帮助开发人员轻松缩短其模板中的URL。 p>Example Usage: 示例用法: em> p> <?php $url = 'http://YourLongURL.com'; $ url ='http://YourLongURL.com'; echo get_bitly($url);回声get_bitly($ url); // display your shortened URL//显示缩短的网址?>?> code> pre>
get_bitly($ url) code>,以帮助开发人员轻松缩短其模板中的URL。 p>Example Usage: 示例用法: em> p> <?php $url = 'http://YourLongURL.com'; $ url ='http://YourLongURL.com'; echo get_bitly($url);回声get_bitly($ url); // display your shortened URL//显示缩短的网址?>?> code> pre>
Example Usage:
示例用法: em> p> <?php $url = 'http://YourLongURL.com'; $ url ='http://YourLongURL.com'; echo get_bitly($url);回声get_bitly($ url); // display your shortened URL//显示缩短的网址?>?> code> pre>
<?php $url = 'http://YourLongURL.com'; $ url ='http://YourLongURL.com'; echo get_bitly($url);回声get_bitly($ url); // display your shortened URL//显示缩短的网址?>?> code> pre>
<?php $url = 'http://YourLongURL.com'; $ url ='http://YourLongURL.com'; echo get_bitly($url);回声get_bitly($ url); // display your shortened URL//显示缩短的网址?>?>
$url = 'http://YourLongURL.com';
$ url ='http://YourLongURL.com';
echo get_bitly($url);
回声get_bitly($ url);
// display your shortened URL
//显示缩短的网址
?>
?>
code> pre>
原文出处:http://www.sanshu.cn/a/4717.html
群主管理都是支付大佬