Core Function
View Source on Trac ↗ clean_url()
clean_url( mixed $url, mixed $protocols = null, mixed $context = 'display' ) Checks and cleans a URL.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $url string | The URL to be cleaned. Required |
| $protocols array | Optional. An array of acceptable protocols. |
| $context string | Optional. How the URL will be used. Default is 'display'. |
Return Value
(string)
The cleaned $url after the {@see 'clean_url'} filter is applied.
Function Information
Since Version
1.2.0
Source File
wp-includes/deprecated.php
Advertisement