wpseek.com
WordPress开发者和主题制作者的搜索引擎



term_links-{$taxonomy} › WordPress过滤钩子

Since2.5.0
已弃用n/a
› apply_filters( "term_links-{$taxonomy}", $links )
参数:
  • () links An array of term links.
    Required: Yes
定义在:
文档:

Filters the term links for a given taxonomy.

The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `term_links-category` - `term_links-post_tag` - `term_links-post_format`




源码

$term_links = apply_filters( "term_links-{$taxonomy}", $links );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores