WE Subscription 2.1.0 has 25 actions and 29 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 WE Subscription fires an action
add_action( 'woocommerce_email_footer', function( $email ) {
// Your code runs here.
}, 10, 1 );
// Change a value WE Subscription is about to use
add_filter( 'woocommerce_paypal_payments_subscriptions_get_token_for_customer', function( $value, $customer, $wc_order ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
woocommerce_paypal_payments_subscriptions_get_token_for_customer
filter Used by 3 plugins → Copy link Customise this hook/** * Returns a payment token for a customer, or null. */ apply_filters( 'woocommerce_paypal_payments_subscriptions_get_token_for_customer', null, $customer, $wc_order ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'wesub_product_price_html', $default_price, $product->get_id() ); -
do_action( 'wesub_subscription_cancelled', $id ); -
wc_stripe_display_update_subs_payment_method_card_checkbox
filter Used by 3 plugins → Copy link Customise this hookapply_filters( 'wc_stripe_display_update_subs_payment_method_card_checkbox', true ); -
do_action( 'wesub_add_more_actions', $wesub_subscription_id ); -
do_action( 'wesub_add_more_search_fields' ); -
apply_filters( 'wesub_add_product_args', $wesub_args, $order ); -
apply_filters( 'wesub_add_shipping_to_subscription', true, $order ); -
apply_filters( 'wesub_add_to_cart_validation', $validate, $wesub_product_id, $quantity ); -
apply_filters( 'wesub_add_to_cart_validation_notice', false, $wesub_product_id, $quantity ); -
do_action( 'wesub_after_subscription_line_item', $wesub_subscription ); -
apply_filters( 'wesub_block_cart_price', array( 'name' => 'wesub-price-html', 'hidden' => true, 'value' => html_entity_decode($price_html), ), $cart_item ); -
apply_filters( 'wesub_bulk_actions', $actions ); -
do_action( 'wesub_bulk_actions', $this->current_action(), $sanitized_post ); -
apply_filters( 'wesub_cart_has_subscription', $has_subscription ); -
apply_filters( 'wesub_cart_item_tax', $product->get_tax_class(), $cart_item, $cart_item['key'] ); -
do_action( 'wesub_do_after_action_scheduled' ); -
do_action( "wesub_do_renewal_payment_{$new_order->get_payment_method()}", $new_order, $wesub_subscription_id ); -
wesub_do_renewal_payment_{$renewal_order->get_payment_method()}
action Copy link Customise this hookdo_action( "wesub_do_renewal_payment_{$renewal_order->get_payment_method()}", $renewal_order, $wesub_subscription_id ); -
apply_filters( 'wesub_fetch_list_data', $data ); -
apply_filters( 'wesub_hide_quantity_fields_for_subscription', $allow, $product ); -
apply_filters( 'wesub_modify_cart_item_price_html', $default_price, $cart_item ); -
do_action( 'wesub_new_created', $new_subscription, $order ); -
apply_filters( 'wesub_next_renewal_timestamp', $next_renewal, $wesub_subscription ); -
apply_filters( 'wesub_order_has_subscription', false, $order_id ); -
apply_filters( 'wesub_order_type_args', array( 'labels' => array( 'name' => __('WE Subscriptions', 'we-subscription'), 'singular_name' => __('WE Subscription', 'we-subscription'), 'add_new' => __('Add WE Subscription', 'we-subscription'), 'add_new_item' => __('Add New WE Subscription', 'we-subscription'), 'edit' => __('Edit', 'we-subscription'), 'edit_item' => __('Edit WE Subscription', 'we-subscription'), 'new_item' => __('New WE Su... ); -
do_action( 'wesub_post_column_label_content', $column_name, $wesub_item ); -
apply_filters( 'wesub_post_column_labels', $columns ); -
apply_filters( 'wesub_product_price_html_hpos', $price_html, $wesub_product_id ); -
do_action( 'wesub_renewal_created', $new_order, $wesub_subscription_id ); -
apply_filters( 'wesub_renewal_item_data', $data, $cart_item ); -
do_action( 'wesub_renewal_paid', $order ); -
apply_filters( 'wesub_simple_product_checkbox', $products_type ); -
do_action( 'wesub_simple_product_setting_save', $sanitized_post ); -
do_action( 'wesub_subcription_add_more_fields', $post ); -
do_action( 'wesub_subscription_activated', $wesub_subscription ); -
apply_filters( 'wesub_subscription_admin_files', $admin_files ); -
do_action( 'wesub_subscription_deleted', $id ); -
apply_filters( 'wesub_subscription_end_timestamp', $expiry_end, $wesub_subscription ); -
do_action( 'wesub_subscription_expired', $wesub_subscription_id ); -
apply_filters( 'wesub_subscription_files', $files ); -
apply_filters( 'wesub_supported_payment_gateway', $supported_payment_method, $gateway_id ); -
do_action( 'wesub_table_filter' ); -
do_action( 'wesub_var_subcription_add_more_fields', $$loop, $variation_data, $variation ); -
do_action( 'wesub_variable_product_checkbox', $loop, $variation_data, $variation ); -
do_action( 'wesub_variable_product_setting_save', $sanitized_post, $variation_id, $loop ); -
apply_filters( 'wesub_variation_between_price', $default_price, $product );
Generated from WE Subscription'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: