发布时间:2020-09-17
WordPress 常用函数 / url_shorten,
缩短 URL,删除 http://, www., 然后将剩下的 url 缩短到 35 个字符,如果字符串长度大于 35,则末尾加上 ….
WordPress 用它在链接管理器界面显示链接 URL。
<?php url_shorten($url); ?>
$url
(string) (required) 将要缩短的 URL。
Default: None
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
(string)
已缩短的 URL。
Since: 1.2.1
wp-admin/includes/misc.php
全站搜索