Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
term_links-{$taxonomy} - 过滤给定分类法的项目链接 - WordPress钩子 - WordPress动力
当前浏览:首页 / WordPress钩子 / term_links-{$taxonomy}

apply_filters( "term_links-{$taxonomy}", string[] $links )

过滤给定分类法的项目链接


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 "90276a70c1ce682ec49779101f60796b" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

term 分类项more...


描述

钩子名称的动态部分$taxonomy指的是分类法slug(taxonomy slug)。

可能的挂钩名称类似:

  • term_links-category
  • term_links-post_tag
  • term_links-post_format

参数

$links

(string[]) 分类法项目(term)链接数组。



源码

查看源码 官方文档


更新日志

版本描述
2.5.0开始引入

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