wppaste
WordPress

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:4575esc_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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 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.