post_column_taxonomy_links

過濾鉤子
apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms )
引數
  • (string[]) $term_links Array of term editing links.
    Required:
  • (string) $taxonomy Taxonomy name.
    Required:
  • (WP_Term[]) $terms Array of term objects appearing in the post row.
    Required:
定義位置
相關勾子
post_comments_linkrest_route_for_taxonomy_itemsplugin_action_linkspost_date_column_statuspost_date_column_time
相關方法
documentation_linkget_post_taxonomies_post_format_linkposts_nav_linkget_attachment_taxonomiespost_reply_link
引入
5.2.0
棄用
-

post_column_taxonomy_links。這個鉤子允許你修改WordPress儀表盤中文章管理螢幕上的分類欄的連結。你可以使用這個鉤子來新增自定義連結或改變現有連結的行為。

過濾edit.php的‘$taxonomy’列中的連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );

常見問題

FAQs
檢視更多 >