Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




sanitize_url [ WordPress Function ]

sanitize_url ( $url, $protocols = null )
Parameters:
  • (string) $url The URL to be cleaned.
  • (array) $protocols An array of acceptable protocols.
See:
Returns:
  • (string) The cleaned URL.
Defined at:



Performs esc_url() for database or redirect usage.

Source


<?php
function sanitize_url$url$protocols null ) {
    
_deprecated_function__FUNCTION__'2.8''esc_url_raw()' );
    return 
esc_url_raw$url$protocols );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics