Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
user_trailingslashit - 根据网站是否设置为使用结尾斜杠,过滤结尾斜杠字符串 - WordPress钩子 - WordPress动力
当前浏览:首页 / WordPress钩子 / user_trailingslashit

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

根据网站是否设置为使用结尾斜杠,过滤结尾斜杠字符串


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 2 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "c1a818a38c2857eb318d2766bd35f8b7" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

usermore...


参数

$stringstring
带或不带斜杠的URL。
$type_of_urlstring
URL类型。接受'single'、'single_trackback'、'single_feed'、'single_paged'、'commentpaged'、'paged'、'home'、'feed'、'category'、'page'、'year'、'month'、'day'、'post_type_archive'。


源码

查看源码 官方文档


更新日志

版本描述
2.2.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194