clean_url

clean_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('clean_url') is found 1 times:

  • /wp-includes/formatting.php line 4556
    4552
    4553
    4554
    4555
    4556
    4557
    4558
    4559
    4560
    4561
    4562
         * @param string $good_protocol_url The cleaned URL to be returned.
         * @param string $original_url      The URL prior to cleaning.
         * @param string $_context          If 'display', replace ampersands and single quotes only.
         */
        return apply_filters( 'clean_url', $good_protocol_url, $original_url, $_context );
    }
     
    /**
     * Sanitizes a URL for database or redirect usage.
     *
     * This function is an alias for sanitize_url().

See this hook used in plugins: