Conditional Payments for WooCommerce 3.5.1 has 3 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.
// Run your own code when Conditional Payments 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 Payments 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->get_shipping_class_id(), 'product_shipping_class', true, apply_filters( 'wpml_default_language', NULL ) ); -
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() ); -
wcp_disable_sortable
filterapply_filters( 'wcp_disable_sortable', false ); -
wpml_register_single_string
actiondo_action( 'wpml_register_single_string', 'Conditional Payments for WooCommerce', sprintf( 'Fee description (GUID: %s)', $action['guid'] ), $action['fee_title'] ); -
wcp_convert_price
filterapply_filters( 'wcp_convert_price', $cond_subtotal ); -
apply_filters( 'wcp_disable_payment_method_trigger', false ); -
wcp_payment_method_options
filterapply_filters( 'wcp_payment_method_options', $options ); -
wcp_settings_tmpl
filterapply_filters( 'wcp_settings_tmpl', 'views/settings.html.php' ); -
apply_filters( 'woo_conditional_payments_actions', [ 'disable_payment_methods' => [ 'title' => __( 'Disable payment methods', 'woo-conditional-payments' ), 'group' => 'availability', ], 'enable_payment_methods_new' => [ 'title' => __( 'Enable payment methods', 'woo-conditional-payments' ), 'group' => 'availability', ], 'enable_payment_methods' => [ 'title' => __( 'Allow payment methods', 'woo-conditional-payments' ), 'group' => 'availability', ... ); -
do_action( 'woo_conditional_payments_after_settings' ); -
apply_filters( 'woo_conditional_payments_filters', $filters ); -
apply_filters( 'woo_conditional_payments_get_shipping_method_instance_id', $instance_id, $shipping_method ); -
apply_filters( 'woo_conditional_payments_get_shipping_method_rate_id', $rate_id ); -
apply_filters( 'woo_conditional_payments_incl_parent_cats', true ); -
do_action( 'woo_conditional_payments_ruleset_value_inputs', $ruleset ); -
apply_filters( 'woo_conditional_payments_shipping_method_options', $options ); -
apply_filters( 'woocommerce_get_sections_checkout', [ '' => __( 'General', 'woocommerce' ) ] ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', NULL, 'orderby=name&order=asc' );
Generated from Conditional Payments 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: