get_url_in_content()
get_url_in_content( string $content )
从传递的内容中提取并返回第一个URL。
Extract and return the first URL from passed content.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$content | (string) | 必需 | 可能包含URL的字符串。 |
返回(Return)
(string|false)找到的URL。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.6.0 | wp-includes/formatting.php:5518 | 0 | 1 function |
get_url_in_content() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_url_in_content/