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 esc_url() is run with the 'db' context.
Defined at: - Introduced in WordPress: 2.8.0
- Deprecated in WordPress: —
Description
Performs esc_url() for database or redirect usage.