
前言介紹
- 這款 WordPress 外掛「Category Children Coupons for WooCommerce」是 2026-01-20 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-01-21,距離現在已有 35 天。
- 外掛最低要求 WordPress 6.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
coupons | categories | woocommerce | restrictions | subcategories |
內容簡介
<strong>外掛總結:</strong>
<p>Category Children Coupons for WooCommerce提供了對WooCommerce內建優惠券類別限制的完全替代方案,並增加了更多彈性。</p>
<ul>
<li><strong>問題:</strong>這個外掛如何提供更靈活的類別限制?</li>
<li><strong>答案:</strong>它包括包含子類別模式和排除子類別模式,以及未來證明 coupons。</li>
<li><strong>問題:</strong>Category Children Coupons for WooCommerce具有哪些功能?</li>
<li><strong>答案:</strong>它包括四個類別限制字段,自動子類別處理,與WooCommerce的其他限制和AutomateWoo兼容性等功能。</li>
<li><strong>問題:</strong>如何運作這個外掛?</li>
<li><strong>答案:</strong>在選擇父類別時,該外掛會自動包含所有子類別進行驗證,並在使用時驗證已選取的包含子類別。</li>
</ul>
原文外掛簡介
Category Children Coupons for WooCommerce provides a complete replacement for WooCommerce’s built-in coupon category restrictions with additional flexibility:
Include children mode: Select a parent category and all its subcategories are automatically included. With WooCommerce’s default restrictions, selecting “Clothing” only matches products directly in that category – not products in “T-Shirts” or “Trousers” subcategories. This plugin includes the entire category tree.
Exclude children mode: Match only the specific categories you select, without including subcategories. This mirrors WooCommerce’s built-in behavior but is managed within this plugin’s unified interface.
Future-proof coupons: The plugin stores your category selection and dynamically expands child categories at validation time – new subcategories are automatically included (or excluded) without editing existing coupons.
Features
Four category restriction fields for complete control:
Product categories (incl. children) – allowed categories with all descendants
Exclude categories (incl. children) – blocked categories with all descendants
Product categories (excl. children) – allowed categories only, no descendants
Exclude categories (excl. children) – blocked categories only, no descendants
Automatic subcategory handling based on your preference
Works alongside WooCommerce’s other (non-category coupon) restrictions
Customizable error messages via filter
AutomateWoo compatibility – category restrictions are copied when generating coupons from templates
How It Works
When you select a category in an “(incl. children)” field, the plugin automatically includes all subcategories during validation. When you use an “(excl. children)” field, only the exact categories you select are matched. Selected categories with children included are validated at usage time, so the current children are automatically used, even if they have changed since the coupon was set up.
Filters
runthings_category_children_coupons_error_message
Customize the error message shown when a coupon fails category validation.
Parameters:
$message (string) – The default error message.
$context (array) – Contains ‘coupon’ (WC_Coupon object) and ‘type’ (‘allowed’, ‘excluded’, ‘allowed_excl’, or ‘excluded_excl’).
Example:
See readme.md on GitHub for detailed code examples.
Additional Notes
Built by Matthew Harris of runthings.dev, copyright 2025.
Visit runthings.dev for more WordPress plugins and resources.
Contribute or report issues at the GitHub repository.
Icon – Discount by Gregor Cresnar, from Noun Project, https://thenounproject.com/browse/icons/term/discount/ (CC BY 3.0)
Icon – Tree view by Paweł Gleń from Noun Project, https://thenounproject.com/browse/icons/term/tree-view/ (CC BY 3.0) – https://thenounproject.com/icon/tree-view-3894745/
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Category Children Coupons for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
List category posts 》List Category Posts 可以讓你透過使用 [catlist] 短碼在文章或頁面中按類別列出文章。在編輯頁面或文章時,直接插入短碼到文章中,文章就會被列出來。基本的...。
Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
Tag, Category, and Taxonomy Manager – AI Autotagger with OpenAI 》axoPress allows you to show a customizable display of the terms assigned to the current post. You can choose which taxonomy and which format to dis...。Remove Category URL 》這個外掛可以徹底將 WordPress 網站的連結結構中的「/category/」去除(例如:從 mydomain.com/category/my-category/ 變成 mydomain.com/my-category/ )。,...。
Category Posts Widget 》Category Posts Widget是一個輕巧的小工具,設計用於一件事並且做得很好:顯示特定類別中最新的文章。, 基於詞語和類別的文章小工具, 這個免費小工具的高級版...。
Media Library Categories 》此外掛可允許在 WordPress 媒體庫中使用分類。啟用後,媒體庫中會顯示下拉式的分類清單。, 您可以使用大量動作進行多項目的分類更改、新增或移除分類。, 在使...。Post Tags and Categories for Pages 》將文章標籤與分類套件套用於所有頁面,讓您可以使用 WordPress 原生的分類功能來分類您的頁面,並且會顯示在 WordPress 存檔查詢裡。, 這個外掛並不會自動顯...。
FV Top Level Categories 》這是針對 WordPress 3.1 及以上版本修復「Top Level Category」外掛程式的修正版。此外掛程式的目的是提供和原來程式相同的功能,但在新版本的 WordPress 上...。Visual Term Description Editor 》此外掛會將分類說明編輯器替換成WordPress TinyMCE視覺編輯器,讓您可以在分類說明裡使用 HTML 並以豐富文字方式撰寫。此功能支援所有分類法,如標籤、分類、...。
Hide Categories and Products for Woocommerce 》這個外掛可以讓你隱藏選定的類別上的店鋪產品,並隱藏類別本身,無論是在列表還是單獨頁面中。, 它可以與 Storefront(主題)短代碼兼容。, 使用方式, , 前往...。
Essential Widgets 》Essential Widgets 是一款免費的 WordPress 插件,專門用於小工具,可以讓您在網站上創建和添加有趣的小工具,使其更具吸引力和親和力。Essential Widgets 忠...。
Category Tag Pages 》為您的頁面添加類別和標籤功能。, 此外掛會添加「post_tag」和「category」taxonomy (標籤和分類所使用的現有taxonomy名稱) 到「page」文章型別 (Post type) ...。
BulkPress 》在 WordPress 中加入多個分類可能非常麻煩。如果你想要為世界上每個國家添加分類,那麼填寫並提交新分類表單數百次就是一件非常糟糕的工作,尤其是當你添加具...。Allow HTML in Category Descriptions 》當您在類別描述文本區添加文字並保存類別時,WordPress會運行內容過濾器,剝除除最基本格式標籤以外的所有內容。, 這個外掛程式可以禁用具有必要權限的角色的...。
Flexible Posts Widget 》預設近期文章小工具非常簡單。我常常需要一個簡單的方法,能夠輕鬆地顯示任意文章類型或分類法的文章精選內容。這就是彈性文章小工具的由來。, 彈性文章小工...。
