On this page
apply_filters( 'clean_url', string $good_protocol_url, string $original_url, string $_context )
Filters a string cleaned and escaped for output as a URL.
Parameters
$good_protocol_urlstring-
The cleaned URL to be returned.
$original_urlstring-
The URL prior to cleaning.
$_contextstring-
If
'display', replace ampersands and single quotes only.
Source
File: wp-includes/formatting.php. View all references
return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );
Related
Used By
| Used By | Description |
|---|---|
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/clean_url