Smart Categories for WooCommerce 1.0.11 has 6 actions and 31 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Smart Categories for WooCommerce fires an action
add_action( 'scwc_term_processed', function( $term_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value Smart Categories for WooCommerce is about to use
add_filter( 'scwc_is_pro', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires when a smart category finishes a full re-evaluation pass. */ do_action( 'scwc_term_processed', $term_id ); -
/** * Fires after any suite plugin changes a product's cost. */ do_action( 'erenlabs_product_cost_updated', $id, $cost, $old, $context ); -
/** * Filter the Pro flag. The pro build's scwc_is_pro() binds this to Freemius. */ apply_filters( 'scwc_is_pro', false ); -
/** * Fires after any suite plugin changes stock. */ do_action( 'erenlabs_stock_moved', $movement ); -
/** * Filter the searchable text for the "Her yer" (anywhere) field. Add * category/tag/attribute names or custom meta here if desired. */ apply_filters( 'scwc_anywhere_haystack', $haystack, $product ); -
/** * Filter the registered fields so add-ons can extend the rule vocabulary. */ apply_filters( 'scwc_fields', $fields ); -
/** * Filter the Freemius plan id used by the upgrade page. */ apply_filters( 'scwc_freemius_plan_id', self::PLAN_ID ); -
/** * Resolve the value for a custom field key registered via the scwc_fields * filter. */ apply_filters( 'scwc_get_field_value', null, $field, $product ); -
/** * Fires after a product is auto-assigned to a smart term. */ do_action( 'scwc_product_assigned', $term_id, $product_id ); -
/** * Filter the product barcode/GTIN source. */ apply_filters( 'scwc_product_barcode', $barcode, $product ); -
/** * Filter the resolved product cost (for profit-margin / cost fields). */ apply_filters( 'scwc_product_cost', $cost, $product ); -
/** * Fires after a product is auto-removed from a smart term. */ do_action( 'scwc_product_unassigned', $term_id, $product_id ); -
/** * Filter the refresh interval in seconds (minimum 15 minutes). */ apply_filters( 'scwc_refresh_interval', DAY_IN_SECONDS ); -
/** * Filter the minimum days of use before asking for a review. */ apply_filters( 'scwc_review_min_days', 7 ); -
/** * Filter the minimum auto-assigned products before asking for a review. */ apply_filters( 'scwc_review_min_products', 20 ); -
/** * Filter the snooze duration in days for "maybe later". */ apply_filters( 'scwc_review_snooze_days', 14 ); -
/** * Filter the taxonomies that can be smart-rule targets. */ apply_filters( 'scwc_smart_taxonomies', array( 'product_cat', 'product_tag' ) ); -
/** * Seconds the interactive walk may spend before handing the rest to the queue. * Only applied when the queue can actually pick it up - with no Action * Scheduler there is nowhere to hand off to, and a stuck counter is the lesser * evil against losing the walk entirely. */ apply_filters( 'scwc_sync_budget', 15 ); -
/** * Product-count ceiling under which a single-term (re)evaluation runs * synchronously in the request instead of via Action Scheduler. */ apply_filters( 'scwc_sync_threshold', 5000 ); -
/** * Filter the built-in templates. */ apply_filters( 'scwc_templates', $templates ); -
/** * Declare an otherwise unregistered field key evaluable by naming its value * type. Integrations that resolve values through `scwc_get_field_value` alone * — without also registering a definition via `scwc_fields` — use this so * their rules keep being evaluated instead of being reported as unevaluable. */ apply_filters( 'scwc_unregistered_field_type', null, $field ); -
apply_filters( 'scwc_evaluated_post_statuses', array( 'publish' ) ); -
apply_filters( 'erenlabs_cost_mirror_keys', array( self::PRIMARY, self::MIRROR ) ); -
apply_filters( 'erenlabs_cost_sources', self::BRIDGES ); -
apply_filters( 'erenlabs_product_cost', $cost, $product ); -
apply_filters( 'erenlabs_product_cost_pre', null, $product ); -
apply_filters( 'erenlabs_suite_modules', array() ); -
apply_filters( 'plugin_locale', determine_locale(), $domain ); -
apply_filters( 'scwc_batch_size', 100 ); -
do_action( 'scwc_fs_loaded' ); -
apply_filters( 'scwc_pcre_backtrack_limit', 100000 ); -
apply_filters( 'scwc_preview_sample_limit', 24 ); -
apply_filters( 'scwc_preview_scan_cap', 2000 ); -
apply_filters( 'scwc_skip_sync', false, $product_id ); -
apply_filters( 'scwc_suite_url', 'https://checkout.freemius.com/bundle/38966/plan/64757/' ); -
apply_filters( 'scwc_support_url', $url ); -
apply_filters( 'scwc_upgrade_url', $url );
Generated from Smart Categories for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: