clean_url WordPress Filter Hook

The clean_url Wordpress hook allows you to clean up your website's URL structure. This can be helpful if you want to improve your website's SEO or if you want to make your website's URL more user-friendly.

apply_filters( 'clean_url', string $good_protocol_url, string $original_url, string $_context ) #

Filters a string cleaned and escaped for output as a URL.


Parameters

$good_protocol_url

(string)The cleaned URL to be returned.

$original_url

(string)The URL prior to cleaning.

$_context

(string)If 'display', replace ampersands and single quotes only.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More