manage_{$this->screen->taxonomy}_custom_column

過濾鉤子
apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id )
引數
  • (string) $string Custom column output. Default empty.
    Required:
  • (string) $column_name Name of the column.
    Required:
  • (int) $term_id Term ID.
    Required:
定義位置
相關勾子
manage_this-screen-id_custom_columnmanage_themes_custom_columnmanage_this-screen-id_custom_column_js_templatemanage_link_custom_columnmanage_comments_custom_column
引入
2.8.0
棄用
-

manage_{$this->screen->taxonomy}_custom_column: 這是WordPress中的一個動作鉤子,允許外掛或主題為任何自定義分類法在分類法表中新增自定義列。鉤子名稱中的$this->screen->taxonomy佔位符被替換成實際的分類法名稱。這個鉤子是在wp-admin/includes/class-wp-terms-list-table.php檔案中觸發的。

過濾術語列表表中的顯示列。

鉤子名稱的動態部分,$this->screen->taxonomy,指的是當前分類法的lug。

可能的鉤子名稱包括:

  • manage_category_custom_column
  • manage_post_tag_custom_column
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id );
return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id );
return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $item->term_id );

常見問題

FAQs
檢視更多 >