user_trailingslashit

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$string

(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'.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.