Cart Abandonment Recovery for WooCommerce 2.2.2 has 22 actions and 75 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 Cart Abandonment Recovery for WooCommerce fires an action
add_action( 'wcf_ca_send_skipped', function( $arg1, $email_data, $_ ) {
// Your code runs here.
}, 10, 3 );
// Change a value Cart Abandonment Recovery for WooCommerce is about to use
add_filter( 'carflows_ca_languages_directory', function( $lang_dir ) {
// Change $lang_dir here.
return $lang_dir;
}, 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
-
/** * Fires when an email follow-up is skipped because the cart contains an * out-of-stock product. Used by Pro to log a skipped row in the Activity Log. */ do_action( 'wcf_ca_send_skipped', 'email', $email_data, __( 'Out-of-stock product in cart', 'woo-cart-abandonment-recovery' ) ); -
/** * Filters the languages directory path to use for CartFlows Ca. */ apply_filters( 'carflows_ca_languages_directory', $lang_dir ); -
/** * Fires after the cart abandonment schema migration runs. */ do_action( 'cartflows_ca_db_updated', $success ); -
/** * Filter to modify email headers before sending. */ apply_filters( 'cartflows_ca_email_headers', $headers, $email_data, $preview_email ); -
/** * CartFlows Init. */ do_action( 'cartflows_ca_init' ); -
/** * CartFlows CA loaded. */ do_action( 'cartflows_ca_loaded' ); -
/** * Filter whether the product table shows prices including tax when the * template does not override it. */ apply_filters( 'cartflows_ca_product_table_prices_include_tax', $with_tax, $context ); -
/** * Maximum age (in days) of an abandoned/lost cart that can still be matched to * a new order by email, preventing very old carts from being falsely * attributed to unrelated new orders. */ apply_filters( 'cartflows_ca_recovery_match_window_days', 90 ); -
/** * Filter to disable the REST API permission check for NPS Survey endpoints. */ apply_filters( 'nps_survey_api_disable_permission_check', false ); -
/** * Filter the API endpoint. */ apply_filters( 'nps_survey_api_endpoint', self::get_api_domain() . 'wp-json/bsf-metrics-server/v1/nps-survey/', $post_data, $nps_id ); -
/** * Filter to check if NPS Survey is enabled for admin only. */ apply_filters( 'nps_survey_enabled_for_admin_only', true ); -
/** * Filter the post data. This can be used to modify the post data before * sending it to the API. */ apply_filters( 'nps_survey_post_data', array( 'rating' => $rating, 'comment' => $comment, 'email' => $current_user->user_email, 'first_name' => ! empty( $current_user->first_name ) ? $current_user->first_name : $current_user->display_name, 'last_name' => ! empty( $current_user->last_name ) ? $current_user->last_name : '', 'source' => $plugin_slug, 'plugin_slug' => $plugin_slug, ), $nps_id ); -
/** * Filter to determine if the NPS survey status should be updated. */ apply_filters( 'nps_survey_should_skip_status_update', false, array_merge( $data, array( 'nps_id' => $nps_id, 'action_type' => $type, ) ) ); -
/** * Filter to check if the NPS survey should be shown. */ apply_filters( 'nps_survey_show_notice', self::is_show_nps_survey_form( $plugin_slug, $display_after ), $plugin_slug ); -
/** * Language Locale for CartFlows Ca */ apply_filters( 'plugin_locale', $get_locale, 'woo-cart-abandonment-recovery' ); -
/** * Dynamic filter wcar_get_option_$option. $option is the name of the Cart * Abandonment Setting */ apply_filters( "wcar_get_option_{$option}", $value, $option, $default ); -
/** * Filter the options array for Cart Abandonment Settings. */ apply_filters( 'wcar_get_option_array', $default_options, $option, $default ); -
/** * Action after coupon is created. */ do_action( 'wcf_ca_after_coupon_created', $coupon_code, $new_coupon_id ); -
/** * Action before displaying email schedule table. */ do_action( 'wcf_ca_before_email_schedule_table', $details, $scheduled_emails ); -
/** * Filter to modify email body before sending. */ apply_filters( 'wcf_ca_email_body_before_send', $body_email_preview, $email_data, $preview_email ); -
/** * Filter email template fields configuration. */ apply_filters( 'wcf_ca_email_template_default_fields', $fields ); -
/** * Filter email template meta defaults */ apply_filters( 'wcf_ca_email_template_meta_defaults', $defaults ); -
/** * Fires after email templates are seeded */ do_action( 'wcf_ca_email_templates_seeded', $force_restore ); -
/** * Filter cart abandonment settings */ apply_filters( 'wcf_ca_get_all_settings', $settings ); -
/** * Fires after a recovery message is scheduled. Used by the Activity Log (Pro) * to record a `scheduled` event. Reused by SMS and WhatsApp. */ do_action( 'wcf_ca_message_scheduled', [ 'channel' => 'email', 'ca_session_id' => (string) $checkout_details->session_id, 'template_id' => (int) $template->id, 'template_name' => isset( $template->template_name ) ? (string) $template->template_name : '', 'recipient' => isset( $checkout_details->email ) ? (string) $checkout_details->email : '', 'scheduled_time' => $scheduled_time, ] ); -
/** * Filter plugin options configuration. */ apply_filters( 'wcf_ca_plugin_default_options', $options ); -
/** * Filter sample email templates. */ apply_filters( 'wcf_ca_sample_email_templates', $templates ); -
/** * Filter to determine if template should be scheduled. */ apply_filters( 'wcf_ca_should_schedule_template', true, $template, $checkout_details ); -
/** * Filter to determine if email should be sent. */ apply_filters( 'wcf_ca_should_send_email', true, $email_data ); -
/** * Use the filter to exclude the specific checkout pages from the cart * abandonment tracking. */ apply_filters( 'woo_ca_exclude_specific_checkout_page', false, $post_id ); -
/** * Filter coupon post data. */ apply_filters( 'woo_ca_generate_coupon', $coupon_post_data, $template_id ); -
/** * Add filter to toggle the Cart Total row. */ apply_filters( 'woo_ca_recovery_enable_cart_total', false ); -
apply_filters( "{$key}_tracking_enabled", $is_enabled ); -
apply_filters( 'woo_ca_recovery_email_unsubscribe_notice', __( 'You have successfully unsubscribed from our email list.', 'woo-cart-abandonment-recovery' ) ); -
apply_filters( 'woo_ca_update_order_cron_interval', wcf_ca()->utils->wcar_get_option( 'wcf_ca_cron_run_time', 20 ) ); -
apply_filters( "{$source}_white_label_options", array() ); -
do_action( 'astra_notice_after_markup' ); -
do_action( "astra_notice_after_markup_{$notice['id']}" ); -
do_action( 'astra_notice_before_markup' ); -
do_action( "astra_notice_before_markup_{$notice['id']}" ); -
do_action( "astra_notice_inside_markup_{$notice['id']}" ); -
apply_filters( 'astra_notices_user_cap_check', current_user_can( $capability ) ); -
apply_filters( 'bsf_core_stats', $this->get_default_stats() ); -
apply_filters( 'bsf_usage_tracking_enabled', true ); -
apply_filters( 'cart_abandonment_admin_vars', $data_vars ); -
apply_filters( 'cart_abandonment_vars', $vars ); -
apply_filters( 'cartflows_ca_cart_abandonment_cut_off_time', WCF_DEFAULT_CUT_OFF_TIME ); -
apply_filters( 'cartflows_ca_enable_non_sensitive_data_tracking', 'yes' === get_option( 'wcar_usage_optin', false ) ); -
apply_filters( 'cartflows_ca_get_specific_stats', $stats_data ); -
apply_filters( 'cartflows_ca_oos_check_interval', DAY_IN_SECONDS ); -
apply_filters( 'cartflows_ca_oos_is_product_out_of_stock', ! $product->is_in_stock(), $product, $cart_item ); -
apply_filters( 'cartflows_ca_oos_scan_batch_size', 200 ); -
apply_filters( 'cartflows_ca_oos_trigger_lock_ttl', 5 * MINUTE_IN_SECONDS ); -
apply_filters( 'cartflows_ca_oos_warning_email_content', $this->get_email_content( $affected_carts ), $affected_carts ); -
apply_filters( 'cartflows_ca_oos_warning_email_subject', __( 'Out-of-stock alert: products in abandoned carts need attention', 'woo-cart-abandonment-recovery' ), $affected_carts ); -
apply_filters( 'cartflows_ca_oos_warning_max_carts', 10, $affected_carts ); -
apply_filters( 'cartflows_ca_oos_warning_recipients', $recipients ); -
apply_filters( 'cartflows_ca_send_oos_warning_email', true ); -
apply_filters( 'cartflows_ca_send_weekly_report_email', true ); -
apply_filters( 'cartflows_ca_skip_default_email_templates', false, $force_restore ); -
do_action( 'cartflows_ca_update_after' ); -
do_action( 'cartflows_ca_update_before' ); -
apply_filters( 'cartflows_ca_weekly_report_data', $report, $from_date, $to_date ); -
apply_filters( 'nps_survey_api_domain', 'https://metrics.brainstormforce.com/' ); -
apply_filters( 'nps_survey_build_url', $default_build_url ); -
apply_filters( 'nps_survey_vars', [ 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), '_ajax_nonce' => wp_create_nonce( 'nps-survey' ), 'rest_api_nonce' => current_user_can( 'manage_options' ) ? wp_create_nonce( 'wp_rest' ) : '', ] ); -
apply_filters( 'suretriggers_get_iframe_url', 'https://app.suretriggers.com/' ); -
apply_filters( 'suretriggers_is_user_connected', false ); -
apply_filters( 'uds_default_deactivation_reasons', array( 'temporary_deactivation' => array( 'label' => esc_html__( 'This is a temporary deactivation for testing.' ), 'placeholder' => esc_html__( 'How can we assist you?' ), 'show_cta' => 'false', 'accept_feedback' => 'false', ), 'plugin_not_working' => array( 'label' => esc_html__( 'The plugin isn\'t working properly.' ), 'placeholder' => esc_html__( 'Please tell us more about what went wrong?'... ); -
apply_filters( 'uds_survey_allowed_screens', array( 'plugins' ) ); -
apply_filters( 'uds_survey_vars', array( 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), '_ajax_nonce' => wp_create_nonce( 'uds_plugin_deactivate_feedback' ), '_current_theme' => function_exists( 'wp_get_theme' ) ? wp_get_theme()->get_template() : '', '_plugin_slug' => array(), ) ); -
apply_filters( 'wcar_add_token_data', $token_data, $email_data ); -
apply_filters( 'wcar_admin_email_template_fields', $fields ); -
apply_filters( 'wcar_admin_integration_fields', $integrations ); -
apply_filters( 'wcar_admin_onboarding_fields', $fields ); -
apply_filters( 'wcar_admin_settings_fields', $settings ); -
do_action( 'wcar_after_restore_cart_abandonment_data', $token_data ); -
do_action( 'wcar_after_unsubscribe_cart_abandonment_emails', $token_data ); -
apply_filters( 'wcar_bsf_analytics_deactivation_survey_data', array( array( 'id' => 'deactivation-survey-woo-cart-abandonment-recovery', 'popup_logo' => CARTFLOWS_CA_URL . 'admin/assets/images/wcar-icon.svg', 'plugin_version' => CARTFLOWS_CA_VER, 'plugin_slug' => 'woo-cart-abandonment-recovery', 'popup_title' => 'Quick Feedback', 'support_url' => 'https://cartflows.com/contact/', 'popup_description' => 'If you have a moment, please share why you are deact... ); -
apply_filters( 'wcar_cart_default_other_fields', $default_other_fields ); -
apply_filters( 'wcar_dashboard_stats_data', $response, $start_date_str, $end_date_str ); -
apply_filters( 'wcar_detailed_report_data', $response, $details ); -
apply_filters( 'wcar_enable_redirect_activation', get_option( 'wcar_do_redirect', true ) ); -
apply_filters( 'wcar_followup_emails_data', $formatted_templates ); -
apply_filters( 'wcar_sanitize_settings_values', $value, $setting_key, $sanitize_method ); -
do_action( 'wcf_ca_after_email_sent', $email_data, $mail_type ); -
do_action( 'wcf_ca_after_save_abandonment_data', $session_id, $checkout_details ); -
do_action( 'wcf_ca_before_trigger_webhook', $trigger_details, $checkout_details, $order_status ); -
do_action( 'wcf_ca_process_abandoned_order', $checkout_details ); -
do_action( 'wcf_ca_send_notices' ); -
apply_filters( 'woo_ca_default_first_name', __( 'there', 'woo-cart-abandonment-recovery' ) ); -
apply_filters( 'woo_ca_email_template_table_style', $style ); -
apply_filters( 'woo_ca_plugin_review_url', 'https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/reviews/?filter=5#new-post' ); -
apply_filters( 'woo_ca_recovery_email_data', $email_data, $preview_email ); -
apply_filters( 'woo_ca_recovery_email_unsubscribe_invalid_notice', __( 'This unsubscribe link is no longer valid. If you still receive cart reminder emails, please use the unsubscribe link in the most recent one.', 'woo-cart-abandonment-recovery' ) ); -
apply_filters( 'woo_ca_session_abandoned_data', [ 'email' => $post_data['wcf_email'], 'cart_contents' => maybe_serialize( $products ), 'cart_total' => sanitize_text_field( $cart_total ), 'time' => sanitize_text_field( $current_time ), 'other_fields' => maybe_serialize( $other_fields ), 'checkout_id' => $post_data['wcf_post_id'], ] ); -
apply_filters( 'woo_ca_webhook_trigger_details', $trigger_details );
Generated from Cart Abandonment Recovery for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: