Conditional Shipping for WooCommerce 3.7.0 has 3 actions and 21 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.
// Run your own code when Conditional Shipping for WooCommerce fires an action
add_action( 'wpml_register_single_string', function( $arg1, $sprintf, $action ) {
// Your code runs here.
}, 10, 3 );
// Change a value Conditional Shipping for WooCommerce is about to use
add_filter( 'wpml_default_language', 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
-
wpml_default_language
filterapply_filters( 'wpml_default_language', NULL ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $product_id, $product->post_type, true, $default_lang ); -
wcs_item_height
filterapply_filters( 'wcs_item_height', $product->get_height(), $data ); -
wcs_item_length
filterapply_filters( 'wcs_item_length', $product->get_length(), $data ); -
wcs_item_width
filterapply_filters( 'wcs_item_width', $product->get_width(), $data ); -
wpml_register_single_string
actiondo_action( 'wpml_register_single_string', 'WooCommerce Conditional Shipping Pro', sprintf( 'Shipping method title (GUID: %s)', $action['guid'] ), $action['title'] ); -
wpml_translate_single_string
filterapply_filters( 'wpml_translate_single_string', $action['title'], 'WooCommerce Conditional Shipping Pro', sprintf( 'Shipping method title (GUID: %s)', $action['guid'] ) ); -
wc_aelia_cs_base_currency
filterapply_filters( 'wc_aelia_cs_base_currency', false ); -
wc_aelia_cs_convert
filterapply_filters( 'wc_aelia_cs_convert', $value, $base_currency, get_woocommerce_currency() ); -
wcs_item_weight
filterapply_filters( 'wcs_item_weight', $product->get_weight(), $data ); -
wcs_convert_price
filterapply_filters( 'wcs_convert_price', $subtotal ); -
wcs_multi_package_mode
filterapply_filters( 'wcs_multi_package_mode', false ); -
wcs_notices
filterapply_filters( 'wcs_notices', array_values( array_unique( $this->notices ) ) ); -
wcs_settings_tmpl
filterapply_filters( 'wcs_settings_tmpl', 'views/settings.html.php' ); -
apply_filters( 'woo_conditional_shipping_actions', [ 'disable_shipping_methods' => [ 'title' => __( 'Disable shipping methods', 'conditional-shipping-for-woocommerce' ), 'group' => 'availability', ], 'enable_shipping_methods_new' => [ 'title' => __( 'Enable shipping methods', 'conditional-shipping-for-woocommerce' ), 'group' => 'availability', ], 'enable_shipping_methods' => [ 'title' => __( 'Allow shipping methods', 'conditional-shipping-for-w... ); -
do_action( 'woo_conditional_shipping_after_settings' ); -
apply_filters( 'woo_conditional_shipping_filters', array( 'cart' => array( 'title' => __( 'Cart', 'conditional-shipping-for-woocommerce' ), 'filters' => array( 'subtotal' => array( 'title' => __( 'Subtotal', 'conditional-shipping-for-woocommerce' ), 'operators' => [ 'gt', 'gte', 'lt', 'lte', 'e' ], ), 'products' => array( 'title' => __( 'Products', 'conditional-shipping-for-woocommerce' ), 'operators' => array( 'in', 'notin', 'exclusive', 'alli... ); -
apply_filters( 'woo_conditional_shipping_get_instance_id', $instance_id, $rate ); -
apply_filters( 'woo_conditional_shipping_get_order_attr', $value, $attr ); -
apply_filters( 'woo_conditional_shipping_incl_parent_cats', true ); -
apply_filters( 'woo_conditional_shipping_method_options', $options ); -
apply_filters( 'woo_conditional_shipping_package_weight', $total_weight, $package, $condition ); -
do_action( 'woo_conditional_shipping_ruleset_value_inputs', $ruleset ); -
apply_filters( 'woo_conditional_shipping_subset_filters', [] );
Generated from Conditional Shipping 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: