[WordPress] 外掛分享: Taxonomies Sortable

首頁外掛目錄 › Taxonomies Sortable
全新外掛
安裝啟用
尚無評分
2072 天前
最後更新
問題解決
WordPress 4.4+ PHP 5.2.4+ v1.0.1 上架:2018-06-18

內容簡介

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 )

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Taxonomies Sortable」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 )

延伸相關外掛

文章
Filter
Apply Filters
Mastodon