WordPress at Your Fingertips
filter is not described

user_trailingslashit filter-hook . WP 2.2.0

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


add_filter( 'user_trailingslashit', 'filter_function_name_2032', 10, 2 );
function filter_function_name_2032( $string, $type_of_url ){
	// filter...

	return $string;
URL with or without a trailing slash.
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'.

Where the hook is called

wp-includes/link-template.php 65
return apply_filters( 'user_trailingslashit', $string, $type_of_url );

Where in WP core the hook is used WordPress

Usage not found.