[WordPress] 外掛分享: Categories Metabox Enhanced

首頁外掛目錄 › Categories Metabox Enhanced
WordPress 外掛 Categories Metabox Enhanced 的封面圖片
1,000+
安裝啟用
★★★★
4.9/5 分(16 則評價)
37 天前
最後更新
問題解決
WordPress 5.5+ v0.9.2 上架:2014-09-22

內容簡介

感謝由 WebDevStudios 創建的套件 Taxonomy_Single_Term,讓我在開發這個外掛時更輕鬆。

使用分類增強型資訊框,您可以:

將內建分類資訊框/面板改為單一術語 UI,也就是將勾選框替換為單選按鈕或下拉式選單。
在外掛的設定頁面上應用此單一術語 UI 到其他分層式分類。
透過設定以下選項,自定義單一術語 UI:

資訊框位置的優先級和位置。
資訊框的標題。
子術語是否應縮進。
是否啟用從資訊框新增術語的功能。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.2) 或搜尋安裝

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

原文外掛簡介

Try it live in your browser — launch the WordPress Playground demo. Boots a WordPress instance with this plugin active, the Category taxonomy pre-configured as radio buttons, and seeded posts you can edit in the Block Editor or run through Quick Edit / Bulk Edit immediately.
Thanks to Taxonomy_Single_Term, a library created by WebDevStudios, it made my work much easier on creating this plugin.
With Categories Metabox Enhanced, you can:

Change the built-in Categories metabox/panel to a single term UI, which means replacing the checkboxes with radio buttons or a select drop-down.
Apply the single term UI to other hierarchical taxonomies from the plugin’s Settings page.
Configure each hierarchical taxonomy independently — the same install can keep one taxonomy as checkboxes while another is forced to radio.
Customize the single term UI by setting these options:

Option type (checkbox, radio, or select).
Priority and position (context) of the metabox placement. Classic editor only.
Title of the metabox / Block Editor panel.
Whether child-terms should be indented.
Whether adding new terms from the metabox is enabled.
Whether a term selection is required (Force selection). When on, the classic metabox hides the “None” option, the Block Editor sidebar drops the “— Select —” entry once a term is chosen, and an empty save is substituted with a default term server-side so REST and programmatic callers can’t bypass it.

The single-term invariant is enforced everywhere posts can be saved: the Classic Editor metabox, the Block Editor sidebar panel, Quick Edit, Bulk Edit, the REST API, WP-CLI, and any code that calls wp_set_object_terms() directly. The classic-editor and Block Editor surfaces enforce in the UI; everything else is enforced on the server via the set_object_terms action, which coerces multi-term submissions to the last term and substitutes the default term on empty submissions when Force selection is on.
The substituted default term resolves in this order: the default_ option (e.g. default_category) → the default_term_ option populated by register_taxonomy() default_term arg (WP 5.5+) → the first term ordered by name. Override per taxonomy with the of_cme_force_selection_default_term filter.
The Block Editor sidebar panel is rendered for taxonomies registered with show_in_rest = true. Hierarchical taxonomies that opt out of REST fall back to the Classic Editor metabox path.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon