esc_url_raw( string $url, array $protocols = null )

Performs esc_url() for database usage.


Parameters

$url

(Required) The URL to be cleaned.

$protocols

(Optional) An array of acceptable protocols.

Default value: null


Return

(string) The cleaned URL.


Source

File: wp-includes/formatting.php

function esc_url_raw( $url, $protocols = null ) {
	return esc_url( $url, $protocols, 'db' );
}


Changelog

Changelog
Version Description
WP-2.8.0 Introduced.