WPDev.one
Core Function
View Source on Trac ↗

wp_extract_urls()

wp_extract_urls( mixed $content )

Uses RegEx to extract URLs from arbitrary content.

Parameters 1 required

Name / Type Description
$content
string

Content to extract URLs from.

Required

Return Value

(string[])
Array of URLs found in passed string.

Function Information

Since Version
3.7.0
Source File
wp-includes/functions.php
Advertisement