钩子文档

post_column_taxonomy_links

💡 云策文档标注

概述

post_column_taxonomy_links 过滤器用于修改编辑页面(edit.php)中分类法列的链接。它允许开发者自定义分类法列中显示的术语编辑链接。

关键要点

  • 过滤器名称:post_column_taxonomy_links
  • 参数:$term_links(术语链接数组)、$taxonomy(分类法名称)、$terms(术语对象数组)
  • 用途:过滤 edit.php 中分类法列的链接,常用于自定义链接显示或添加额外功能
  • 相关函数:WP_Posts_List_Table::column_default()
  • 引入版本:WordPress 5.2.0

📄 原文内容

Filters the links in $taxonomy column of edit.php.

Parameters

$term_linksstring[]
Array of term editing links.
$taxonomystring
Taxonomy name.
$termsWP_Term[]
Array of term objects appearing in the post row.

Source

$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );

Changelog

Version Description
5.2.0 Introduced.