Conditional Payments for WooCommerce icon
eCommerce & WooCommerce

Conditional Payments for WooCommerce hooks reference

  • By WP Trio
  • v3.5.1
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/class-conditional-payments-filters.php line 254 · used in 5 places
    apply_filters( 'wpml_default_language', NULL );
  • includes/class-conditional-payments-filters.php line 254 · used in 5 places
    apply_filters( 'wpml_object_id', $product->get_shipping_class_id(), 'product_shipping_class', true, apply_filters( 'wpml_default_language', NULL ) );
  • includes/frontend/class-woo-conditional-payments-frontend.php line 321 · used in 2 places
    apply_filters( 'wc_aelia_cs_base_currency', false );
  • includes/frontend/class-woo-conditional-payments-frontend.php line 323 · used in 2 places
    apply_filters( 'wc_aelia_cs_convert', $value, $base_currency, get_woocommerce_currency() );
  • includes/admin/class-woo-conditional-payments-admin.php line 88 · used in 2 places
    apply_filters( 'wcp_disable_sortable', false );
  • includes/admin/class-woo-conditional-payments-admin.php line 277 · used in 2 places
    do_action( 'wpml_register_single_string', 'Conditional Payments for WooCommerce', sprintf( 'Fee description (GUID: %s)', $action['guid'] ), $action['fee_title'] );
  • includes/class-conditional-payments-filters.php line 473
    apply_filters( 'wcp_convert_price', $cond_subtotal );
  • includes/frontend/class-woo-conditional-payments-frontend.php line 54
    apply_filters( 'wcp_disable_payment_method_trigger', false );
  • includes/woo-conditional-payments-utils.php line 511
    apply_filters( 'wcp_payment_method_options', $options );
  • includes/admin/class-woo-conditional-payments-admin.php line 178
    apply_filters( 'wcp_settings_tmpl', 'views/settings.html.php' );
  • includes/woo-conditional-payments-utils.php line 427
    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', ... );
  • includes/admin/views/settings.html.php line 117
    do_action( 'woo_conditional_payments_after_settings' );
  • includes/woo-conditional-payments-utils.php line 420
    apply_filters( 'woo_conditional_payments_filters', $filters );
  • includes/class-conditional-payments-filters.php line 166
    apply_filters( 'woo_conditional_payments_get_shipping_method_instance_id', $instance_id, $shipping_method );
  • includes/class-conditional-payments-filters.php line 205
    apply_filters( 'woo_conditional_payments_get_shipping_method_rate_id', $rate_id );
  • includes/woo-conditional-payments-utils.php line 985
    apply_filters( 'woo_conditional_payments_incl_parent_cats', true );
  • includes/admin/views/ruleset.html.php line 488
    do_action( 'woo_conditional_payments_ruleset_value_inputs', $ruleset );
  • includes/woo-conditional-payments-utils.php line 700
    apply_filters( 'woo_conditional_payments_shipping_method_options', $options );
  • includes/admin/class-woo-conditional-payments-admin.php line 393
    apply_filters( 'woocommerce_get_sections_checkout', [ '' => __( 'General', 'woocommerce' ) ] );
  • includes/woo-conditional-payments-utils.php line 896
    apply_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: