內容簡介
Taxonomies Sortable 可以讓您在管理介面上透過拖曳的方式對與物件相關聯的非階層式分類字詞進行排序。
使用方式
一旦安裝了此外掛程式,您可以按以下方式使分類字詞變成可排序:
以程式方式,在 register_taxonomy() 中添加 'sortable' => true 參數。
以程式方式,使用下列 taxonomies_sortable 過濾器。
在「設定」-「分類法可排序」管理介面中選擇您要使可排序的非階層式分類。
請注意,將分類法變成可排序,也等同於將該分類法的 sort => true 設定。
掛載點
taxonomies_sortable
過濾器,允許您以程式方式設定可排序分類法。
apply_filters( 'taxonomies_sortable', array $taxonomies )
taxonomies_sortable_admin_settings
過濾器,允許您在管理介面中顯示或隱藏外掛程式的設定頁面。
apply_filters( 'taxonomies_sortable_admin_settings', boolean $display )
外掛標籤
開發者團隊
原文外掛簡介
Taxonomies Sortable allow to sort non-hierarchical taxonomy terms associated to objects by drag&drop them on the administration interface.
Usage
Once the plugin is installed you can make a taxonomy sortable in the following ways:
Programmatically by adding 'sortable' => true argument in register_taxonomy().
Programmatically by using taxonomies_sortable filter below.
Using the Settings->Taxonomies Sortable administration screen by selecting non-hierarchical taxonomies you want to make sortable.
Note that making a taxonomy sortable, implicitly means also setting sort => true for that taxonomy.
Hooks
taxonomies_sortable
Filter allowing to programmatically set sortable taxonomies.
apply_filters( 'taxonomies_sortable', array $taxonomies )
taxonomies_sortable_admin_settings
Filter allowing to display or not the plugin settings page in the administration.
apply_filters( 'taxonomies_sortable_admin_settings', boolean $display )
