WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2647 | $good_protocol_url = $url; |
| 2648 | } else { |
| 2649 | if ( ! is_array( $protocols ) ) |
| 2650 | $protocols = wp_allowed_protocols(); |
| 2651 | $good_protocol_url = wp_kses_bad_protocol( $url, $protocols ); |
| 2652 | if ( strtolower( $good_protocol_url ) != strtolower( $url ) ) |
| 2653 | return ''; |
| 2654 | } |
| 2655 | |
| 2656 | return apply_filters('clean_url', $good_protocol_url, $original_url, $_context); |
| 2657 | } |
| 2658 | |
| 2659 | /** |
| 2660 | * Performs esc_url() for database usage. |
| 2661 | * |
| 2662 | * @since 2.8.0 |
| 2663 | * @uses esc_url() |
| 2664 | * |
| 2665 | * @param string $url The URL to be cleaned. |