apply_filters( 'clean_url', string $good_protocol_url, string $original_url, string $_context )
- Since
- 2.3.0
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.
Fired at · 1
wp-includes/formatting.php:4649esc_url()
Source
* @since 2.3.0 * * @param string $good_protocol_url The cleaned URL to be returned. * @param string $original_url The URL prior to cleaning. * @param string $_context If 'display', replace ampersands and single quotes only. */ return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );} /** * Sanitizes a URL for database or redirect usage. * * This function is an alias for sanitize_url().History
Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.