Aco Subscription and Recurring Payments for WooCommerce 2.0.0 has 95 actions and 68 filters, read directly from its source code on Nov 19, 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 Aco Subscription and Recurring Payments for WooCommerce fires an action
add_action( 'acosuanr_activated', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Aco Subscription and Recurring Payments for WooCommerce is about to use
add_filter( 'acosuanr_rest_query', function( $args, $request ) {
// Change $args here.
return $args;
}, 10, 2 );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 after the plugin has been activated. */ do_action( 'acosuanr_activated' ); -
/** * Fires after a renewal is successfully processed. */ do_action( 'acosuanr_after_renewal', $subscription, $renewal_order ); -
/** * Fires before running bulk action. */ do_action( 'acosuanr_bulk_action', $action, $ids ); -
/** * Fires after a subscription record is created. */ do_action( 'acosuanr_created', $sub_id, $subscription, $order ); -
/** * Fires when a customer note is successfully added. */ do_action( 'acosuanr_customer_note_added', $subscription_id, $note_text, $note_id ); -
/** * Fires when a manual renewal order has been created. */ do_action( 'acosuanr_manual_renewal_created', $subscription, $renewal_order ); -
/** * Fires after a PayPal payment has been successfully synced. */ do_action( 'acosuanr_paypal_payment_completed', $subscription_id, $order ); -
/** * Fires after a PayPal payment failure has been synced. */ do_action( 'acosuanr_paypal_payment_failed', $subscription_id, $order ); -
/** * Filter REST arguments before repository query. */ apply_filters( 'acosuanr_rest_query', $args, $request ); -
/** * Filter the retry eligibility outcome. */ apply_filters( 'acosuanr_retry_should_execute', true, $subscription ); -
/** * Fires after a specific table is created. */ do_action( 'acosuanr_after_create_table', $class ); -
/** * Fires after running database migrations. */ do_action( 'acosuanr_after_install' ); -
/** * Fires after order-level subscription metadata is saved. */ do_action( 'acosuanr_after_order_meta', $order ); -
/** * Filter the subscription fields array or trigger markup modifications. */ do_action( 'acosuanr_after_product_fields', $product_object ); -
/** * Fires after saving subscription product meta. */ do_action( 'acosuanr_after_product_save', $post_id, $product, $validated ); -
/** * Fires after the subscription status has changed. */ do_action( 'acosuanr_after_status_change', $subscription, $new_status, $old_status ); -
/** * Fires after the subscription details table. */ do_action( 'acosuanr_after_summary', $product ); -
/** * Filter the subscription badges list. */ apply_filters( 'acosuanr_badges', $badges, $product ); -
/** * Fires before creating a subscription. */ do_action( 'acosuanr_before_create', $subscription, $data ); -
/** * Fires before a specific table is created. */ do_action( 'acosuanr_before_create_table', $class ); -
/** * Fires before deleting a subscription. */ do_action( 'acosuanr_before_delete', $id ); -
/** * Fires before running database migrations. */ do_action( 'acosuanr_before_install' ); -
/** * Fires before order-level subscription metadata is saved. */ do_action( 'acosuanr_before_order_meta', $order ); -
/** * Fires before subscription fields inside the product data panel. */ do_action( 'acosuanr_before_product_fields', $product_object ); -
/** * Fires before saving subscription product meta. */ do_action( 'acosuanr_before_product_save', $post_id, $product ); -
/** * Fires before a renewal is processed. */ do_action( 'acosuanr_before_renewal', $subscription ); -
/** * Fires before a new renewal order is saved, so gateways can copy payment meta * onto it. */ do_action( 'acosuanr_before_renewal_order_save', $renewal_order, $subscription, $parent_order ); -
/** * Fires before a subscription status change is persisted. */ do_action( 'acosuanr_before_status_change', $subscription, $new_status, $old_status ); -
/** * Fires before the subscription details table. */ do_action( 'acosuanr_before_summary', $product ); -
/** * Fires before updating subscription. */ do_action( 'acosuanr_before_update', $subscription, $data ); -
/** * Filter if the customer can cancel the subscription. */ apply_filters( 'acosuanr_can_cancel', $can_cancel, $subscription ); -
/** * Filter if the customer can resume the subscription. */ apply_filters( 'acosuanr_can_resume', $can_resume, $subscription ); -
/** * Filter if the customer can suspend the subscription. */ apply_filters( 'acosuanr_can_suspend', false, $subscription ); -
/** * Filter the allowed transitions for a specific source status. */ apply_filters( 'acosuanr_can_transition', $allowed_targets, $from_status ); -
/** * Filter the subscription cart item metadata. */ apply_filters( 'acosuanr_cart_item_data', $cart_item_data, $product ); -
/** * Filter the list of subscription-compatible gateways. */ apply_filters( 'acosuanr_compatible_gateways', $compatible ); -
/** * Filter subscription creation data before insert. */ apply_filters( 'acosuanr_create_data', $data ); -
/** * Filter the created subscription model before insertion. */ apply_filters( 'acosuanr_create_subscription', $subscription, $order, $item ); -
/** * Filter the list of available customer actions. */ apply_filters( 'acosuanr_customer_actions', $actions, $subscription ); -
/** * Fires when a subscription is cancelled by the customer. */ do_action( 'acosuanr_customer_cancelled', $subscription, $reason ); -
/** * Fires when a subscription is resumed by the customer. */ do_action( 'acosuanr_customer_resumed', $subscription ); -
/** * Fires when a subscription is suspended by the customer. */ do_action( 'acosuanr_customer_suspended', $subscription, $reason ); -
/** * Filter the generated KPI overview card data. */ apply_filters( 'acosuanr_dashboard_cards', $kpis, $start_date, $end_date ); -
/** * Fires when subscription dates are updated. */ do_action( 'acosuanr_dates_updated', $id, $data_to_update, $subscription ); -
/** * Fires after database migrations are fully updated. */ do_action( 'acosuanr_db_updated', \ACOSUANR_DB_VERSION ); -
/** * Fires after the plugin has been deactivated. */ do_action( 'acosuanr_deactivated' ); -
/** * Filter the default billing interval for new subscriptions. */ apply_filters( 'acosuanr_default_interval', $default_interval ); -
/** * Filter the default subscription settings. */ apply_filters( 'acosuanr_default_settings', $defaults ); -
/** * Fires after deleting a subscription. */ do_action( 'acosuanr_deleted', $id ); -
/** * Filter custom dynamic placeholders values. */ apply_filters( 'acosuanr_email_placeholders', $placeholders, $subscription ); -
/** * Filter the customer portal endpoint slug. */ apply_filters( 'acosuanr_endpoint_slug', $slug ); -
/** * Fires when a subscription has expired. */ do_action( 'acosuanr_expired', $subscription ); -
/** * Fires after the frontend service has been registered. */ do_action( 'acosuanr_frontend_init' ); -
/** * Filter whether a gateway supports a specific subscription feature. */ apply_filters( 'acosuanr_gateway_supports', $supported, $gateway_id, $feature ); -
/** * Hook: Import started. */ do_action( 'acosuanr_import_started', $import_id ); -
/** * Fires after the plugin has been fully initialized. */ do_action( 'acosuanr_loaded', $this ); -
/** * Filter the located template file path. */ apply_filters( 'acosuanr_locate_template', $located, $template_name, $args ); -
/** * Filter the generated manual renewal order before returning. */ apply_filters( 'acosuanr_manual_renewal_order', $renewal_order, $subscription ); -
/** * Filter the checkout redirect URL. */ apply_filters( 'acosuanr_manual_renewal_redirect', $pay_url, $renewal_order ); -
/** * Filter the manual renewal validation outcome. */ apply_filters( 'acosuanr_manual_renewal_validated', true, $subscription ); -
/** * Filter subscription model after load. */ apply_filters( 'acosuanr_model', $model ); -
/** * Filter the calculated next payment date. */ apply_filters( 'acosuanr_next_payment', $next->format( 'Y-m-d H:i:s' ), $from_date, $interval, $period ); -
/** * Fires after order creation for orders containing subscriptions. */ do_action( 'acosuanr_order_created', $order ); -
/** * Filter order-level subscription metadata keys and values. */ apply_filters( 'acosuanr_order_meta', $order_meta, $order ); -
/** * Filter compiled subscription payment history. */ apply_filters( 'acosuanr_payment_history', array_values( $transactions ), $subscription ); -
/** * Fires after the PayPal integration service has fully registered. */ do_action( 'acosuanr_paypal_connected' ); -
/** * Filter PayPal gateway subscription feature support. */ apply_filters( 'acosuanr_paypal_gateway_supports', true, $feature ); -
/** * Fires when a new PayPal plan mapping is created. */ do_action( 'acosuanr_paypal_plan_created', $product->get_id(), $plan_data, $new_hash ); -
/** * Filter the PayPal plan data before storage. */ apply_filters( 'acosuanr_paypal_plan_data', $plan_data, $product ); -
/** * Fires when a PayPal plan mapping is updated. */ do_action( 'acosuanr_paypal_plan_updated', $product->get_id(), $plan_data, $new_hash ); -
/** * Fires when a subscription is cancelled via PayPal webhook. */ do_action( 'acosuanr_paypal_subscription_cancelled', $subscription_id, $event ); -
/** * Filter the webhook event before processing. */ apply_filters( 'acosuanr_paypal_webhook_event', $event, $event_type ); -
/** * Fires when a PayPal webhook event is received. */ do_action( 'acosuanr_paypal_webhook_received', $event, $event_type ); -
/** * Filter the available subscription billing periods. */ apply_filters( 'acosuanr_periods', $periods ); -
/** * Filter the subscription price string. */ apply_filters( 'acosuanr_price_string', $string, $price_html, $interval, $period, $signup_fee, $trial_length, $trial_period ); -
/** * Fires after the product manager has been initialized. */ do_action( 'acosuanr_product_loaded' ); -
/** * Filter the registered subscription product type slugs. */ apply_filters( 'acosuanr_product_types', $types ); -
/** * Fires when subscription product is updated. */ do_action( 'acosuanr_product_updated', $product ); -
/** * Fires after a paid renewal order has been applied to its subscription. */ do_action( 'acosuanr_renewed', $subscription, $order ); -
/** * Filter SQL query for subscription repositories. */ apply_filters( 'acosuanr_repository_query', $sql, $args ); -
/** * Filter rest item response attributes. */ apply_filters( 'acosuanr_rest_after_response', $item, $sub ); -
/** * Filter if the current user has REST admin capabilities. */ apply_filters( 'acosuanr_rest_is_admin', $can_manage ); -
/** * Filter if the current user has REST manager capabilities. */ apply_filters( 'acosuanr_rest_is_manager', $can_manage ); -
/** * Filter REST API response envelope payload. */ apply_filters( 'acosuanr_rest_prepare', $body, $data ); -
/** * Fires when dispatching a REST API response. */ do_action( 'acosuanr_rest_response', $response, $body, $status ); -
/** * Fires when a payment retry is successfully scheduled. */ do_action( 'acosuanr_retry_scheduled', $subscription_id, $next_attempt, $run_time ); -
/** * Fires after a subscription action has been scheduled. */ do_action( 'acosuanr_schedule_created', $action_id, $hook, $timestamp, $args ); -
/** * Fires after subscription scheduled actions have been cancelled. */ do_action( 'acosuanr_schedule_deleted', $hook, $args ); -
/** * Filter the registered schema classes. */ apply_filters( 'acosuanr_schema', $schemas ); -
/** * Filter whether subscription renewal should proceed. */ apply_filters( 'acosuanr_should_renew', true, $subscription ); -
/** * Filter statistics metrics response. */ apply_filters( 'acosuanr_statistics', $stats ); -
/** * Fires when subscription status is changed. */ do_action( 'acosuanr_status_changed', $id, $new_status, $old_status, $subscription ); -
/** * Fires after the Stripe integration service has fully registered. */ do_action( 'acosuanr_stripe_connected' ); -
/** * Filter Stripe gateway subscription feature support. */ apply_filters( 'acosuanr_stripe_gateway_supports', true, $feature, $gateway_id ); -
/** * Filter gateways that must not be offered for subscription purchases. */ apply_filters( 'acosuanr_subscription_blocked_gateways', $blocked ); -
/** * Filter the displayed subscription number. */ apply_filters( 'acosuanr_subscription_number', ltrim( $number, '#' ), $subscription ); -
/** * Allow third-party code to run additional cleanup. */ do_action( 'acosuanr_uninstall' ); -
/** * Filter subscription update data before update. */ apply_filters( 'acosuanr_update_data', $data, $id ); -
/** * Fires after updating subscription. */ do_action( 'acosuanr_updated', $subscription ); -
/** * Fires when webhook delivery fails. */ do_action( 'acosuanr_webhook_failed', $log_id, $log['webhook_id'], $log['event'], $error_message ); -
/** * Filter the webhook retry schedule increments. */ apply_filters( 'acosuanr_webhook_retry_schedule', $schedule ); -
/** * Fires when webhook sent successfully. */ do_action( 'acosuanr_webhook_sent', $log_id, $log['webhook_id'], $log['event'] ); -
/** * Filters the Acowebs feedback API base URL. */ apply_filters( 'acowebs_feedback_api_url', ACOWEBS_FEEDBACK_API ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'acosuanr_report_data', $report, 'payments', $start_date, $end_date ); -
do_action( 'acosuanr_process_automatic_renewal_payment', $renewal_order, $subscription ); -
do_action( 'acosuanr_reminder_sent', $subscription_id, 'upcoming_renewal' ); -
do_action( 'acosuanr_import_completed', $import_id ); -
apply_filters( 'acosuanr_is_manual_renewal_enabled', false ); -
do_action( 'acosuanr_renewal_invoice', $subscription, $renewal_order ); -
do_action( 'acosuanr_trial_started', $subscription ); -
woocommerce_scheduled_subscription_payment
action Used by 2 plugins → Copy link Customise this hookdo_action( 'woocommerce_scheduled_subscription_payment', $payment_method, $renewal_order->get_total(), $renewal_order ); -
do_action( 'acosuanr_admin_note_added', $inserted_id, $note ); -
do_action( 'acosuanr_after_add_to_cart', $product_id, $variation_id, $cart_item_data ); -
do_action( 'acosuanr_after_cart_summary' ); -
do_action( 'acosuanr_after_checkout' ); -
do_action( 'acosuanr_after_notification', $subscription->get_id(), $this->id, $sent ); -
do_action( 'acosuanr_after_price', $product ); -
do_action( 'acosuanr_before_add_to_cart', $product_id, $variation_id ); -
do_action( 'acosuanr_before_cart_summary' ); -
do_action( 'acosuanr_before_checkout' ); -
do_action( 'acosuanr_before_notification', $subscription->get_id(), $this->id ); -
do_action( 'acosuanr_before_price', $product ); -
do_action( 'acosuanr_customer_view', $subscription_id ); -
do_action( 'acosuanr_email_failed', $subscription->get_id(), $this->id ); -
do_action( 'acosuanr_email_sent', $subscription->get_id(), $this->id ); -
do_action( 'acosuanr_export_completed', $export_id ); -
apply_filters( 'acosuanr_export_fields', $headers ); -
apply_filters( 'acosuanr_export_filename', $filename, $format, $filters ); -
apply_filters( 'acosuanr_export_retention_seconds', $default_retention ); -
do_action( "acosuanr_export_send_{$destination}", $file_path ); -
do_action( 'acosuanr_export_started', $export_id ); -
do_action( 'acosuanr_forecast_generated', $forecast ); -
apply_filters( 'acosuanr_import_batch_size', 100 ); -
apply_filters( 'acosuanr_import_mapping', $normalized, $raw_row ); -
apply_filters( 'acosuanr_import_retention_seconds', $default_retention ); -
apply_filters( 'acosuanr_import_validation', $errors, $normalized ); -
apply_filters( 'acosuanr_initial_total', $total ); -
do_action( 'acosuanr_manual_renewal_cancelled', $subscription, $order_id ); -
do_action( 'acosuanr_manual_renewal_completed', $subscription, $order ); -
do_action( 'acosuanr_manual_renewal_paid', $subscription, $order ); -
do_action( 'acosuanr_max_retries_reached', $subscription_id, $target_status ); -
do_action( 'acosuanr_note_added', $inserted_id, $note ); -
apply_filters( 'acosuanr_price_html', $formatted, $this ); -
apply_filters( 'acosuanr_recurring_total', $total ); -
apply_filters( 'acosuanr_rest_response', $body, $data, $status ); -
do_action( 'acosuanr_retry_cancelled', $subscription_id ); -
do_action( 'acosuanr_retry_failed', $subscription_id, $attempts, $error_code, $error_message ); -
do_action( 'acosuanr_retry_started', $subscription_id, $order_id ); -
do_action( 'acosuanr_retry_success', $subscription_id, $order ); -
apply_filters( 'acosuanr_status', $new_status, $old_status, $subscription ); -
apply_filters( 'acosuanr_statuses', $statuses ); -
apply_filters( 'acosuanr_transition_reason', $reason, $new_status, $old_status, $sub_id ); -
do_action( 'acosuanr_update_lifecycle', $subscription ); -
apply_filters( 'acosuanr_webhook_max_attempts', $max ); -
apply_filters( 'wcs_is_manual_renewal_enabled', $manual ); -
apply_filters( "woocommerce_email_additional_content_{$this->id}", $content, $this->object, $this ); -
apply_filters( "woocommerce_email_heading_{$this->id}", $heading, $this->object, $this ); -
apply_filters( "woocommerce_email_subject_{$this->id}", $subject, $this->object, $this ); -
woocommerce_paypal_payments_permit_multiple_payment_tokens
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'woocommerce_paypal_payments_permit_multiple_payment_tokens', false ); -
do_action( "woocommerce_scheduled_subscription_payment_{$gateway_id}", $order->get_total(), $order ); -
do_action( "woocommerce_scheduled_subscription_payment_{$payment_method}", $renewal_order->get_total(), $renewal_order );
Generated from Aco Subscription and Recurring Payments 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: