apply_filters( 'user_trailingslashit', string $url, string $type_of_url )

Filters the trailing-slashed string, depending on whether the site is set to use trailing slashes.


Parameters

$url string
URL with or without a trailing slash.
$type_of_url string
The type of URL being considered. Accepts 'single', 'single_trackback', 'single_feed', 'single_paged', 'commentpaged', 'paged', 'home', 'feed', 'category', 'page', 'year', 'month', 'day', 'post_type_archive'.

Top ↑

Source

File: wp-includes/link-template.php. View all references

return apply_filters( 'user_trailingslashit', $url, $type_of_url );


Top ↑

Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.