Filters a string cleaned and escaped for output as a URL.
$good_protocol_urlstring$original_urlstring$_contextstringwp-includes/formatting.php:4575esc_url() * @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().Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.