Smart COD for WooCommerce 1.9.11 has 0 actions and 17 filters, read directly from its source code on Nov 17, 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.
// Change a value Smart COD for WooCommerce is about to use
add_filter( 'wsc_cancelled_cod_payment_methods', 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
-
apply_filters( 'wsc_cancelled_cod_payment_methods', array( 'cod' ) ); -
wc_smart_cod_available
filterapply_filters( 'wc_smart_cod_available', false, $this->restriction_settings ); -
wc_smart_cod_fee
filterapply_filters( 'wc_smart_cod_fee', is_numeric( $extra_fee ) ? $extra_fee : 0, $this->fee_settings ); -
wc_smart_cod_fee_title
filterapply_filters( 'wc_smart_cod_fee_title', $label ); -
apply_filters( 'wsc_cancelled_cod_collection_batch_size', self::DEFAULT_BATCH_SIZE ); -
apply_filters( 'wsc_cancelled_cod_has_dispatch_evidence', $has_evidence, $order, $record ); -
apply_filters( 'wsc_cancelled_cod_known_tracking_plugins', array( 'woocommerce-shipment-tracking/woocommerce-shipment-tracking.php', 'ast-pro/ast-pro.php', 'woocommerce-order-tracking/woocommerce-order-tracking.php', 'yith-woocommerce-order-tracking/init.php', 'aftership-woocommerce-tracking/aftership-woocommerce-tracking.php', 'woocommerce-shipment-tracking-pro/woocommerce-shipment-tracking-pro.php', ) ); -
apply_filters( 'wsc_cancelled_cod_prior_completed_candidate_limit', self::MAX_PRIOR_COMPLETED_TRACKED_COD_ORDERS ); -
apply_filters( 'wsc_cancelled_cod_prior_completed_tracked_cod_count', $count, $order, $order_ids ); -
apply_filters( 'wsc_cancelled_cod_tracking_data', $tracking, $order ); -
apply_filters( 'wsc_cancelled_cod_untracked_fallback_minimum_age', DAY_IN_SECONDS, $order ); -
apply_filters( 'wsc_cancelled_cod_use_untracked_fallback', true, $order, $cancelled, $from ); -
wsc_smart_cod_ai_batch_size
filterapply_filters( 'wsc_smart_cod_ai_batch_size', self::DEFAULT_BATCH_SIZE ); -
wsc_smart_cod_ai_endpoint
filterapply_filters( 'wsc_smart_cod_ai_endpoint', $endpoint ); -
wsc_smart_cod_ai_interval
filterapply_filters( 'wsc_smart_cod_ai_interval', self::DEFAULT_INTERVAL ); -
apply_filters( 'wsc_smart_cod_ai_lookup_endpoint', $endpoint ); -
apply_filters( 'wsc_smart_cod_ai_registration_endpoint', $endpoint );
Generated from Smart COD for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: