esc_url_raw


esc_url_raw ( $url, $protocols = null )

Parameters:
  • (string) url The URL to be cleaned.
  • (string[]) protocols Optional. An array of acceptable protocols. Defaults to return value of wp_allowed_protocols().
See:
Returns:
  • (string) The cleaned URL after sanitize_url() is run.
Defined at:
Change Log:
  • 6: .

Description

Sanitizes a URL for database or redirect usage.This function is an alias for sanitize_url().

Related Functions

esc_url, rest_url, esc_html__, esc_html_e, esc_html_x

Top Google Results

User discussions

wpseek mobile