CartBounty 8.11.1 has 16 actions and 41 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 CartBounty fires an action
add_action( 'cartbounty_admin_email_after_button', function() {
// Your code runs here.
}, 10, 1 );
// Change a value CartBounty is about to use
add_filter( 'cartbounty_display_currency_code', 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( 'cartbounty_display_currency_code', false ); -
do_action( 'cartbounty_admin_email_after_button' ); -
do_action( 'cartbounty_admin_email_after_intro' ); -
do_action( 'cartbounty_admin_email_after_title' ); -
do_action( 'cartbounty_admin_email_before_title' ); -
apply_filters( 'cartbounty_admin_email_button_html', sprintf('<a href="%1$s" title="%4$s" style="margin: 0; outline: none; padding: 0; box-shadow: none;"><span style="padding: 18px 35px; background-color: %3$s; border-radius: 4px; color: %2$s; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif; display:inline-block; border: 0px none; font-size: 17px; font-weight: bold; line-height: 1; letter-spacing: normal; text-... ); -
apply_filters( 'cartbounty_admin_email_get_pro', sprintf('<p style="color: %s; font-size: 16px; line-height: 1.3; margin: 0; padding: 0; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%s</p>', esc_attr( $args['text_color'] ), wp_kses_post( $args['get_pro_text'] ) ) ); -
apply_filters( 'cartbounty_admin_email_intro_html', sprintf('<p style="color: %s; font-size: 16px; line-height: 1.3; margin: 10px 0; padding: 0; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%s</p>', esc_attr( $args['text_color'] ), wp_kses_post( $args['content'] ) ) ); -
apply_filters( 'cartbounty_admin_email_title_html', sprintf('<h1 style="color: %s; font-size: 28px; line-height: 1.3; letter-spacing: normal; font-weight: 600; margin: 0; padding: 0; display: block; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%s</h1>', esc_attr( $args['main_color'] ), esc_html( $args['heading'] ) ) ); -
cartbounty_after_page_title
actiondo_action( 'cartbounty_after_page_title' ); -
do_action( 'cartbounty_automation_after_button' ); -
do_action( 'cartbounty_automation_after_intro' ); -
do_action( 'cartbounty_automation_after_title' ); -
do_action( 'cartbounty_automation_before_title' ); -
apply_filters( 'cartbounty_automation_button_html', $button_html, $args ); -
apply_filters( 'cartbounty_automation_copyright', sprintf('%s © %s %s. %s', esc_html__( 'Copyright', 'woo-save-abandoned-carts' ), esc_html( $args['current_year'] ), get_option( 'blogname' ), esc_html__( 'All rights reserved.', 'woo-save-abandoned-carts' ) ) ); -
apply_filters( 'cartbounty_automation_intro_html', sprintf('<p style="color: %s; font-size: 16px; line-height: 1.3; margin: 10px 0; padding: 0; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%s</p>', esc_attr( $args['text_color'] ), esc_html( $args['content'] ) ) ); -
apply_filters( 'cartbounty_automation_title_html', sprintf('<h1 style="color: %s; font-size: 28px; line-height: 1.3; letter-spacing: normal; font-weight: 600; margin: 0; padding: 0; display: block; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%s</h1>', esc_attr( $args['text_color'] ), esc_html( $args['heading'] ) ) ); -
apply_filters( 'cartbounty_automation_unsubscribe_html', sprintf('<a class="cartbounty-email-unsubscribe" href="%1$s" title="%2$s" style="text-decoration: none; color: %3$s; font-size: 12px; line-height: 1.3; text-decoration: underline; font-family: \'Open Sans\', Roboto, \'San Francisco\', Arial, Helvetica, sans-serif;">%2$s</a>', esc_url( $args['unsubscribe_link'] ), esc_attr__( 'Unsubscribe', 'woo-save-abandoned-carts' ), esc_attr( $args['footer_c... ); -
apply_filters( 'cartbounty_automation_unsubscribe_url', $this->get_unsubscribe_url( $cart->email, $cart->session_id, $cart->id ), $step_nr ); -
apply_filters( 'cartbounty_cart_cooldown_period', $time['two_hours'] ); -
apply_filters( 'cartbounty_cart_ip_cooldown_period', $time['ten_minutes'] ); -
cartbounty_checkout_fields
filterapply_filters( 'cartbounty_checkout_fields', $selectors ); -
apply_filters( 'cartbounty_consent_checkbox_args', array( 'label' => $checkout_consent, 'type' => 'checkbox', 'priority' => $consent_position, 'required' => false, 'default' => false, 'clear' => true, 'class' => array( 'cartbounty-consent' ) ) ); -
apply_filters( 'cartbounty_consent_email_name', 'billing_email_consent' ); -
apply_filters( 'cartbounty_custom_add_to_cart_button_selectors', array( 'cartbounty' => '.cartbounty-add-to-cart', 'woocommerce' => '.add_to_cart_button, .ajax_add_to_cart, .single_add_to_cart_button', 'yith-wfbt' => '.yith-wfbt-submit-button', ) ); -
apply_filters( 'cartbounty_custom_email_selectors', array( 'cartbounty' => '.cartbounty-custom-email-field', 'woocommerce' => '.login #username', 'wpforms' => '.wpforms-container input[type="email"]', 'sgpb' => '.sgpb-form input[type="email"]', 'pum' => '.pum-container input[type="email"]', 'ninja' => '.nf-form-cont input[type="email"]', 'wpcf7' => '.wpcf7 input[type="email"]', 'fluentform' => '.fluentform input[type="email"]', 'sib' => '.sib_si... ); -
apply_filters( 'cartbounty_custom_phone_selectors', array( 'cartbounty' => '.cartbounty-custom-phone-field', 'wpforms' => '.wpforms-container input[type="tel"]', 'sgpb' => '.sgpb-form input[type="tel"]', 'ninja' => '.nf-form-cont input[type="tel"]', 'wpcf7' => '.wpcf7 input[type="tel"]', 'fluentform' => '.fluentform input[type="tel"]', 'optinmonster' => '.om-element input[type="tel"]', 'optimonk' => '.om-holder input[type="tel"]', 'poptin' => '.... ); -
apply_filters( 'cartbounty_daypicker_settings', array( 'id' => 'cartbounty-daypicker-container', 'action' => 'apply_report_period', 'nonce' => wp_create_nonce( 'apply_report_period' ), 'defaultStartDate' => $report_parameters['start_date'], 'defaultEndDate' => $report_parameters['end_date'], 'defaultComparison' => $report_parameters['compare'], 'defaultDatePeriod' => $default_date_period, 'mode' => 'range', 'showOutsideDays' => false, 'defau... ); -
apply_filters( 'cartbounty_disable_input_bot_test', false ); -
cartbounty_email_validation
filterapply_filters( 'cartbounty_email_validation', '^[^\s@]+@[^\s@]+\.[^\s@]{2,}$' ); -
do_action( 'cartbounty_exit_intent_after_title' ); -
do_action( 'cartbounty_exit_intent_before_form_fields' ); -
apply_filters( 'cartbounty_exit_intent_button_html', sprintf('<button type="submit" name="cartbounty-exit-intent-submit" id="cartbounty-exit-intent-submit" class="button" value="submit" style="background-color: %s; color: %s">%s</button>', esc_attr( $args['inverse_color'] ), esc_attr( $args['main_color'] ), esc_html__('Save', 'woo-save-abandoned-carts') ) ); -
apply_filters( 'cartbounty_exit_intent_close_html', sprintf('<svg><line x1="1" y1="11" x2="11" y2="1" stroke="%s" stroke-width="2"/><line x1="1" y1="1" x2="11" y2="11" stroke="%s" stroke-width="2"/></svg>', esc_attr( $args['inverse_color'] ), esc_attr( $args['inverse_color'] ) ) ); -
apply_filters( 'cartbounty_exit_intent_consent', sprintf( '<p id="cartbounty-exit-intent-consent" style="color: %s">%s</p>', esc_attr( $args['inverse_color'] ), $args['tools_consent'] ) ); -
apply_filters( 'cartbounty_exit_intent_description_html', sprintf( '<p style="color: %s">%s</p>', esc_attr( $args['inverse_color'] ), $args['content'] ) ); -
cartbounty_exit_intent_end
actiondo_action( 'cartbounty_exit_intent_end' ); -
apply_filters( 'cartbounty_exit_intent_field_html', '<input type="email" id="cartbounty-exit-intent-email" required placeholder="'. esc_attr__('Enter your email', 'woo-save-abandoned-carts') .'">' ); -
apply_filters( 'cartbounty_exit_intent_image_html', sprintf('<img src="%s" title="%s" alt="%s"/>', esc_url( $args['image_url'] ), esc_attr( $args['title'] ), esc_attr( $args['alt'] ) ) ); -
cartbounty_exit_intent_start
actiondo_action( 'cartbounty_exit_intent_start' ); -
apply_filters( 'cartbounty_exit_intent_title_html', sprintf( '<h2 style="color: %s">%s</h2>', esc_attr( $args['inverse_color'] ), $args['heading'] ) ); -
cartbounty_from_email
filterapply_filters( 'cartbounty_from_email', $sender ); -
cartbounty_get_template_path
filterapply_filters( 'cartbounty_get_template_path', $template, $template_name, $template_path, $default_path ); -
cartbounty_include_tax
filterapply_filters( 'cartbounty_include_tax', true ); -
cartbounty_phone_validation
filterapply_filters( 'cartbounty_phone_validation', '^[+0-9\s]\s?\d[0-9\s-.]{6,30}$' ); -
cartbounty_price_format
filterapply_filters( 'cartbounty_price_format', $woocommerce_price_format ); -
apply_filters( 'cartbounty_restore_block_checkout', true ); -
apply_filters( 'cartbounty_restore_classic_checkout', true ); -
apply_filters( 'cartbounty_save_custom_fields', true ); -
cartbounty_waiting_time
filterapply_filters( 'cartbounty_waiting_time', $default_waiting_time ); -
apply_filters( 'cartbounty_wordpress_batch_email_limit', 10 );
Generated from CartBounty'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: