A WordPress-centric search engine for devs and theme authors



esc_url_raw ›

Since2.8.0
Deprecatedn/a
esc_url_raw ( $url, $protocols = null )
Parameters: (2)
  • (string) $url The URL to be cleaned.
    Required: Yes
  • (array) $protocols An array of acceptable protocols.
    Required: No
    Default: null
Returns:
  • (string) The cleaned URL.
Defined at:
Codex:

Performs esc_url() for database usage.



Source

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