WordPress at a glance

esc_url_raw() WP 1.0

Performs esc_url() for database usage.

Works based on: esc_url()
✈ 1 time = 0.000071s = very fast | 50000 times = 1.60s = fast

No Hooks.


String. The cleaned URL.


esc_url_raw( $url, $protocols );
$url(string) (required)
The URL to be cleaned.
An array of acceptable protocols.
Default: null

Code of esc_url_raw: wp-includes/formatting.php VER 4.9.8

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

Related Functions

From tag: esc_ (clean validate sanitize)

More from category: Sanitizing, Escaping

No comments
    Hello, !     Log In . Register