YITH WooCommerce Subscription 4.23.0 has 74 actions and 216 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 YITH WooCommerce Subscription fires an action
add_action( 'yith_plugin_fw_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value YITH WooCommerce 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 ); -
/** * Action triggered after the Plugin Framework initialization finishes. */ do_action( 'yith_plugin_fw_loaded' ); -
/** * APPLY_FILTER: yith_plugin_fw_metabox_{meta_box_id}_field_pre_get_value Allow * filtering values for meta-box fields instead of retrieving them by * post_meta(s). */ apply_filters( "yith_plugin_fw_metabox_{$meta_box_id}_field_pre_get_value", null, $post->ID, $field_name, $field ); -
/** * APPLY_FILTERS: ywsbs_pay_order_check */ apply_filters( 'ywsbs_pay_order_check', $order ); -
apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ); -
apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ); -
apply_filters( 'yit_title_special_characters', array() ); -
apply_filters( 'plugin_locale', determine_locale(), $domain ); -
yith_plugin_fw_wc_panel_screen_ids_for_assets
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_wc_panel_screen_ids_for_assets', array() ); -
do_action( 'ywsbs_subscription_trashed', $subscription_id ); -
ywsbs_suspend_for_failed_recurring_payment
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'ywsbs_suspend_for_failed_recurring_payment', get_option( 'ywsbs_suspend_for_failed_recurring_payment', 'no' ) ); -
apply_filters( 'the_content', $content ); -
yit_framework_after_print_wc_panel_content
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yit_framework_after_print_wc_panel_content', $option_key ); -
yit_framework_before_print_wc_panel_content
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yit_framework_before_print_wc_panel_content', $option_key ); -
apply_filters( "yith_bh_onboarding_{$slug}", array() ); -
apply_filters( 'yith_plugin_fw_panel_active_tab_class', $active_class, $current_tab, $tab_key ); -
do_action( 'yith_plugin_fw_panel_enqueue_scripts', $this ); -
yith_plugin_fw_panel_wc_extra_row_classes
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_panel_wc_extra_row_classes', $extra_row_classes, $field ); -
apply_filters( 'yith_plugin_fw_wc_panel_field_data', $field ); -
apply_filters( 'yith_plugin_fw_wc_panel_pre_field_value', null, $field ); -
apply_filters( 'yith_ywsbs_locate_template', $plugin_path, $path ); -
do_action( 'ywsbs_customer_subscription_actived_mail', $this ); -
apply_filters( 'ywsbs_is_subscription', ( 'yes' === $is_subscription && '' !== $price_is_per ), $product->get_id() ); -
apply_filters( 'ywsbs_recurring_price_html', $pri, $recurring_price, $recurring_period, $cart_item ); -
do_action( 'ywsbs_subscription_cancelled', $this->id ); -
apply_filters( 'formatted_woocommerce_price', number_format( $price, $decimals, $decimal_separator, $thousand_separator ), $price, $decimals, $decimal_separator, $thousand_separator ); -
apply_filters( 'raw_woocommerce_price', floatval( $negative ? $price * -1 : $price ) ); -
apply_filters( 'the_excerpt', $content ); -
apply_filters( 'wc_price', $return, $price, $args ); -
apply_filters( 'wc_price_args', $args ); -
apply_filters( 'woocommerce_admin_order_date_format', __( 'M j, Y', 'yith-woocommerce-subscription' ) ); -
apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $subscription->product_id, $product ); -
apply_filters( 'woocommerce_admin_subscription_item_coupon_url', add_query_arg( array( 'post' => $post_id, 'action' => 'edit', ), admin_url( 'post.php' ) ), $item, $subscription ); -
apply_filters( 'woocommerce_cart_shipping_packages', array( 0 => array( 'contents' => $new_cart->get_cart(), 'contents_cost' => isset( $new_cart->cart_contents[ $new_cart_item_key ]['line_total'] ) ? $new_cart->cart_contents[ $new_cart_item_key ]['line_total'] : 0, 'destination' => $shipping['destination'], ), ) ); -
woocommerce_my_account_my_orders_actions
filter Used by 13 plugins → Copy link Customise this hookapply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ); -
apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'yith-woocommerce-subscription' ) ); -
apply_filters( 'woocommerce_price_trim_zeros', false ); -
apply_filters( 'woocommerce_quantity_input_step', '1', $product ); -
do_action( "woocommerce_settings_{sanitize_title($field['id'])}" ); -
do_action( "woocommerce_settings_{sanitize_title($field['id'])}_after" ); -
do_action( "woocommerce_settings_{sanitize_title($field['id'])}_end" ); -
woocommerce_valid_order_statuses_for_cancel
filter Used by 25 plugins → Copy link Customise this hookapply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ); -
do_action( 'wp_loaded' ); -
do_action( 'wpml_register_single_string', $context, $name, $value ); -
apply_filters( 'wpml_translate_single_string', $default_value, $context, $name ); -
do_action( 'yit_after_add_settings_page' ); -
do_action( 'yit_after_metaboxes_labels' ); -
do_action( 'yit_after_metaboxes_tab' ); -
do_action( "yit_before_metabox_option_{urldecode($key)}" ); -
do_action( 'yit_before_metaboxes_labels' ); -
do_action( 'yit_before_metaboxes_tab' ); -
apply_filters( 'yit_body_backgrounds', self::$config['body_backgrounds'] ); -
apply_filters( 'yit_framework_show_float_save_button', true ); -
apply_filters( 'yit_fw_metaboxes_type_args', array( 'basename' => YIT_CORE_PLUGIN_PATH, 'path' => '/metaboxes/types/', 'type' => $field['type'], 'args' => array( 'args' => $field ), ) ); -
apply_filters( 'yit_header_backgrounds', self::$config['header_backgrounds'] ); -
apply_filters( 'yit_icon_list', $standard_icon_list ); -
apply_filters( "yit_metabox_{$key}_tab_fields", $_tab['fields'] ); -
apply_filters( 'yit_metaboxes_option_main_name', 'yit_metaboxes' ); -
apply_filters( 'yit_pagination_html', $html ); -
do_action( "yit_panel_{$field['type']}", $field, $db_value ); -
do_action( "yit_panel_{$option['type']}", $option, $db_value, $custom_attributes ); -
do_action( 'yit_panel_wc_after_reset' ); -
do_action( 'yit_panel_wc_after_update' ); -
do_action( 'yit_panel_wc_before_reset' ); -
do_action( 'yit_panel_wc_before_update' ); -
apply_filters( 'yit_plugin_fw_help_desk_request_timeout', 2 ); -
yit_plugin_fw_help_desk_valid_response_statuses
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yit_plugin_fw_help_desk_valid_response_statuses', array( 200 ) ); -
apply_filters( 'yit_plugin_fw_panel_option_args', wp_parse_args( $args, $default_args ) ); -
apply_filters( 'yit_plugin_fw_wc_panel_option_args', $args ); -
apply_filters( 'yit_plugin_panel_asset_loading', false ); -
apply_filters( "yit_pointers-{$screen_id}", array() ); -
apply_filters( "yit_pointers-{$screen->id}", array() ); -
apply_filters( 'yit_simple_read_more_classes', ' ' ); -
apply_filters( 'yit_video_vimeo', $html ); -
apply_filters( 'yit_video_youtube', $html ); -
apply_filters( 'yit_wc_deprecated_filters', $filters ); -
apply_filters( 'yit-pointer-special-screen', array( 'plugins', 'update' ) ); -
apply_filters( 'yith_admin_tab_params', $additional_info ); -
apply_filters( 'yith_bh_onboarding_save_option_value', $value, $single_option, $slug ); -
apply_filters( "yith_bh_onboarding_save_options_{$slug}", isset( $options['tabs'][ $tab ]['options'] ), $posted ); -
apply_filters( 'yith_check_privacy_enabled', $enabled, $wc ); -
apply_filters( 'yith_database_info', array( 'mysql_version' => $database_version['number'], 'mysql_version_string' => $database_version['string'], 'database_tables' => $tables, 'database_size' => $database_size, ) ); -
apply_filters( "yith_plugin_fw_{$screen_id}_bulk_delete_confirmation_enabled", in_array( $pagenow, array( 'edit.php', 'edit-tags.php' ), true ) ); -
apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false ); -
do_action( 'yith_plugin_fw_before_woocommerce_panel', $page ); -
do_action( 'yith_plugin_fw_before_yith_panel', $this->settings['page'] ); -
apply_filters( 'yith_plugin_fw_date_formats', $date_formats, $js ); -
yith_plugin_fw_elementor_after_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_elementor_after_do_shortcode', $shortcode, $this ); -
yith_plugin_fw_elementor_before_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_elementor_before_do_shortcode', $shortcode, $this ); -
yith_plugin_fw_elementor_editor_after_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_elementor_editor_after_do_shortcode', $shortcode, $this ); -
yith_plugin_fw_elementor_editor_before_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_elementor_editor_before_do_shortcode', $shortcode, $this ); -
yith_plugin_fw_elementor_editor_shortcode
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_elementor_editor_shortcode', $shortcode, $this ); -
apply_filters( 'yith_plugin_fw_elementor_shortcode', $shortcode, $this ); -
do_action( "yith_plugin_fw_get_field_{$field['type']}_after", $field ); -
do_action( "yith_plugin_fw_get_field_{$field['type']}_before", $field ); -
do_action( 'yith_plugin_fw_get_field_after', $field ); -
do_action( 'yith_plugin_fw_get_field_before', $field ); -
apply_filters( 'yith_plugin_fw_get_field_template_path', $field_template, $field ); -
yith_plugin_fw_gutenberg_after_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_gutenberg_after_do_shortcode', $shortcode, $current_action ); -
yith_plugin_fw_gutenberg_before_do_shortcode
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_gutenberg_before_do_shortcode', $shortcode, $current_action ); -
apply_filters( 'yith_plugin_fw_gutenberg_shortcode', $shortcode, $current_action ); -
yith_plugin_fw_gutenberg_skip_shortcode_sanitize
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_gutenberg_skip_shortcode_sanitize', false ); -
yith_plugin_fw_icons_field_icons_{sanitize_key($filter_suffix)}
filter Copy link Customise this hookapply_filters( "yith_plugin_fw_icons_field_icons_{sanitize_key($filter_suffix)}", $icons ); -
yith_plugin_fw_inline_fields_allowed_types
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_inline_fields_allowed_types', array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html', 'datepicker', 'colorpicker' ), $name, $field ); -
yith_plugin_fw_json_search_found_post_title
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_json_search_found_post_title', rawurldecode( wp_strip_all_tags( $the_title ) ), $post_id, $request ); -
apply_filters( 'yith_plugin_fw_json_search_found_posts', $found_posts, $request ); -
apply_filters( 'yith_plugin_fw_json_search_found_terms', $terms, $args ); -
apply_filters( 'yith_plugin_fw_json_search_order_limit', 10 ); -
apply_filters( 'yith_plugin_fw_json_search_order_number', $term ); -
apply_filters( 'yith_plugin_fw_json_search_order_term', $term ); -
yith_plugin_fw_json_search_products_request
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_json_search_products_request', $request ); -
apply_filters( 'yith_plugin_fw_json_search_terms_args', $args ); -
yith_plugin_fw_json_search_terms_default_args
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_json_search_terms_default_args', array( 'taxonomy' => 'category', 'hide_empty' => false, 'order' => 'ASC', 'orderby' => 'name', 'include' => '', 'exclude' => '', 'exclude_tree' => '', 'number' => '', 'hierarchical' => true, 'child_of' => 0, 'parent' => '', 'term_field' => 'id', ) ); -
do_action( "yith_plugin_fw_metabox_before_render_{$meta_box['id']}", $post, $meta_box ); -
apply_filters( 'yith_plugin_fw_metabox_class', $class, $post ); -
yith_plugin_fw_metabox_enqueue_styles_and_scripts
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_metabox_enqueue_styles_and_scripts', $enqueue, $this ); -
yith_plugin_fw_metabox_extra_row_classes
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_metabox_extra_row_classes', $extra_row_classes, $field ); -
yith_plugin_fw_metabox_field_row_template_path
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_metabox_field_row_template_path', YIT_CORE_PLUGIN_TEMPLATE_PATH . '/metaboxes/field-row.php', $field ); -
yith_plugin_fw_metabox_label_allowed_tags
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_metabox_label_allowed_tags', $label_allowed_tags, $meta_box_id ); -
apply_filters( 'yith_plugin_fw_order_number', '#' . $order->get_id(), $order->get_id() ); -
apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_post_type_tabs", $tabs, $post_type ); -
apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_taxonomy_tabs", $tabs, $taxonomy ); -
yith_plugin_fw_panel_before_panel_header
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_panel_before_panel_header', $this ); -
yith_plugin_fw_panel_field_container_template_path
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_panel_field_container_template_path', YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/panel-field-container.php', $option ); -
apply_filters( 'yith_plugin_fw_panel_has_help_tab', isset( $this->settings['help_tab'] ) && is_array( $this->settings['help_tab'] ) && ( ! $this->is_free() || ! empty( $this->settings['help_tab']['show_on_free'] ) ), $this ); -
apply_filters( 'yith_plugin_fw_panel_help_tab_options', $options, $this->settings ); -
apply_filters( 'yith_plugin_fw_panel_url', $url, $page, $tab, $sub_tab, $parent_page ); -
apply_filters( 'yith_plugin_fw_pointers_special_screens', array( 'plugins', 'update' ) ); -
apply_filters( 'yith_plugin_fw_privacy_guide_content', '', $key ); -
yith_plugin_fw_privacy_guide_content_after
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_privacy_guide_content_after' ); -
yith_plugin_fw_privacy_guide_content_before
action Used by 27 plugins → Copy link Customise this hookdo_action( 'yith_plugin_fw_privacy_guide_content_before' ); -
apply_filters( 'yith_plugin_fw_privacy_policy_content', ob_get_clean() ); -
yith_plugin_fw_privacy_policy_content_sections
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_privacy_policy_content_sections', array( 'general' => array( 'tutorial' => _x( 'This sample language includes the basics around what personal data your store may be collecting, storing and sharing, as well as who may have access to that data. Depending on what settings are enabled and which additional plugins are used, the specific information shared by your store will vary. We recommend consulting with a lawyer when deciding w... ); -
yith_plugin_fw_privacy_policy_guide_title
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_privacy_policy_guide_title', _x( 'YITH Plugins', 'Privacy Policy Guide Title', 'yith-plugin-fw' ) ); -
yith_plugin_fw_radio_field_label_allowed_tags
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_fw_radio_field_label_allowed_tags', $label_allowed_tags, $field ); -
apply_filters( 'yith_plugin_fw_rate_url', 'https://wordpress.org/support/plugin/' . $plugin_slug . '/reviews/#new-post' ); -
apply_filters( 'yith_plugin_fw_show_dashboard_widgets', true ); -
apply_filters( 'yith_plugin_fw_time_formats', $time_formats ); -
apply_filters( "yith_plugin_fw_toggle_element_subtitle_{$field_id}", $subtitle_element, $elements, $value ); -
apply_filters( "yith_plugin_fw_toggle_element_title_{$field_id}", $title_element, $elements, $value ); -
apply_filters( 'yith_plugin_fw_wc_panel_sanitize_option', $value, $option, $raw_value ); -
apply_filters( 'yith_plugin_panel_item_options_path', $path, $options_path, $item, $this ); -
yith_plugin_panel_sub_tab_item_options_path
filter Used by 27 plugins → Copy link Customise this hookapply_filters( 'yith_plugin_panel_sub_tab_item_options_path', $sub_tab_path, $sub_tabs, $sub_item, $this ); -
apply_filters( "yith_plugin_row_meta_{$field}_url", $url, $field, $slug, $base_uri ); -
apply_filters( 'yith_show_plugin_row_meta', array( 'to_show' => $to_show, 'slug' => '', ), $plugin_meta, $plugin_file, $plugin_data, $status ); -
apply_filters( 'yith_subscription_add_to_cart_text', $new_label, $product ); -
apply_filters( 'yith_system_additional_check', array( 'min_wp_version' => get_bloginfo( 'version' ), 'min_wc_version' => function_exists( 'WC' ) ? WC()->version : 'n/a', 'wp_memory_limit' => $wp_memory_limit, 'min_php_version' => $php_version, 'min_tls_version' => $tls, 'imagick_version' => $imagick_version, 'wp_cron_enabled' => ( ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) || apply_filters( 'yith_system_status_server_cron', false... ); -
apply_filters( 'yith_system_generic_message', '', $key, $item, $label ); -
apply_filters( 'yith_system_status_check_ip', true ); -
apply_filters( 'yith_system_status_check_ssl', true ); -
apply_filters( 'yith_system_status_enable_phpinfo', true ); -
apply_filters( 'yith_system_status_server_cron', false ); -
apply_filters( 'yith_toggle_elements_index', $i++, $key ); -
apply_filters( 'yith_wc_plugin_panel_current_tab', parent::get_current_tab() ); -
apply_filters( 'yith_ywsbs_autoload_registered_path', array() ); -
apply_filters( 'yith_ywsbs_block_loader_admin', YITH_YWSBS_ASSETS_URL . '/images/block-loader.gif' ); -
apply_filters( 'yith_ywsbs_panel_customization_options', $settings ); -
apply_filters( 'yith_ywsbs_panel_settings_options', $settings ); -
do_action( 'yith_ywsbs_plugin_activation_process_completed' ); -
apply_filters( 'yith_ywsbs_renew_order_custom_fields', array( 'billing_vat', 'billing_ssn', 'billing_yweu_vat' ), $order, $args ); -
do_action( 'ywcsb_admin_subscription_data_after_billing_address', $subscription ); -
do_action( 'ywcsb_admin_subscription_data_after_shipping_address', $subscription ); -
do_action( 'ywcsb_after_calculate_totals', $order ); -
apply_filters( 'ywsbs_add_cart_item_data', $new_cart, $new_cart_item_key, $cart_item ); -
do_action( 'ywsbs_add_custom_shipping_costs', $order, $subscription ); -
apply_filters( 'ywsbs_add_shipping_cost_order_renew', ! empty( $subscription->subscriptions_shippings ) ); -
apply_filters( 'ywsbs_add_subcription_args', wp_parse_args( $args, $this->get_default_meta_data() ), $this ); -
apply_filters( 'ywsbs_admin_billing_fields', array( 'first_name' => array( 'label' => esc_html__( 'First name', 'yith-woocommerce-subscription' ), 'show' => false, ), 'last_name' => array( 'label' => esc_html__( 'Last name', 'yith-woocommerce-subscription' ), 'show' => false, ), 'company' => array( 'label' => esc_html__( 'Company', 'yith-woocommerce-subscription' ), 'show' => false, ), 'address_1' => array( 'label' => esc_html__( 'Address... ); -
apply_filters( 'ywsbs_admin_shipping_fields', array( 'first_name' => array( 'label' => esc_html__( 'First name', 'yith-woocommerce-subscription' ), 'show' => false, ), 'last_name' => array( 'label' => esc_html__( 'Last name', 'yith-woocommerce-subscription' ), 'show' => false, ), 'company' => array( 'label' => esc_html__( 'Company', 'yith-woocommerce-subscription' ), 'show' => false, ), 'address_1' => array( 'label' => esc_html__( 'Address... ); -
do_action( 'ywsbs_after_add_to_cart_subscription', $cart_item ); -
do_action( 'ywsbs_after_create_renew_order', $order, $subscription ); -
do_action( 'ywsbs_after_installation_process' ); -
do_action( 'ywsbs_after_register_post_type' ); -
do_action( 'ywsbs_after_subscription_plan_info', $subscription ); -
do_action( 'ywsbs_after_subscription_status', $subscription ); -
do_action( 'ywsbs_after_view_subscription', $subscription ); -
apply_filters( 'ywsbs_apply_shipping_on_synch_subscription', $apply_shipping_on_sync, $cart_item, $cart_item_key ); -
do_action( 'ywsbs_before_add_to_cart_subscription', $cart_item ); -
do_action( 'ywsbs_before_close_subscription_info_box', $subscription ); -
do_action( 'ywsbs_before_single_product_options', $product ); -
do_action( 'ywsbs_before_subscription_deleted', $this->id ); -
apply_filters( 'ywsbs_calculate_order_totals_condition', true ); -
apply_filters( 'ywsbs_can_be_cancelled', $return, $this ); -
apply_filters( 'ywsbs_can_be_create_a_renew_order', $result, $this ); -
apply_filters( 'ywsbs_cancel_recurring_payment', true, $subscription ); -
apply_filters( 'ywsbs_cancel_subscription_before_remove_personal_data', true ); -
apply_filters( 'ywsbs_cart_has_subscription_with_shipping', $cart_has_subscription_with_shipping ); -
apply_filters( 'ywsbs_change_price_current_in_cart_html', $product->get_price(), $product ); -
apply_filters( 'ywsbs_change_price_in_cart_html', $cart_item['data']->get_price(), $cart_item['data'] ); -
apply_filters( 'ywsbs_change_subtotal_price_current_in_cart_html', $product->get_price(), $product ); -
apply_filters( 'ywsbs_change_subtotal_price_in_cart_html', $cart_item['data']->get_price(), $cart_item['data'], $cart_item ); -
apply_filters( 'ywsbs_change_subtotal_product_price', $price_html, $product, $quantity, $cart_item, $show_complete_price_on_substotal_cart ); -
apply_filters( 'ywsbs_check_valid_admin_page', $is_valid, $post_type, $single ); -
apply_filters( 'ywsbs_checkout_subscription_total_amount', $sbs_total_format, $product, $quantity ); -
apply_filters( 'ywsbs_custom_fields_list', $custom_fields ); -
apply_filters( 'ywsbs_customer_billing_email', $billing_email, $this ); -
apply_filters( 'ywsbs_customer_billing_first_name', $billing_first_name, $this ); -
apply_filters( 'ywsbs_customer_billing_last_name', $billing_last_name, $this ); -
apply_filters( 'ywsbs_customer_billing_phone', $billing_phone, $this ); -
do_action( 'ywsbs_customer_subscription_cancelled_mail', $this ); -
do_action( 'ywsbs_customer_subscription_expired_mail', $this ); -
do_action( 'ywsbs_customer_subscription_payment_done_mail', $this ); -
do_action( 'ywsbs_customer_subscription_payment_failed_mail', $this ); -
apply_filters( 'ywsbs_date_fields', array( 'start_date', 'payment_due_date', 'expired_date', 'cancelled_date', 'end_date' ) ); -
apply_filters( 'ywsbs_delete_cancelled_pending_enabled', $delete_pending_and_cancelled ); -
apply_filters( 'ywsbs_edit_shipping_address', true, $this ); -
apply_filters( 'ywsbs_enable_subscription_on_product', true, $post ); -
apply_filters( 'ywsbs_enable_woocommerce_paypal_payments_gateway', true ); -
apply_filters( 'ywsbs_endpoint', 'my-subscription' ); -
apply_filters( 'ywsbs_from_list', $options ); -
apply_filters( 'ywsbs_get_max_length_period', $max_length ); -
apply_filters( 'ywsbs_get_num_of_days_between_attemps', $arg ); -
apply_filters( 'ywsbs_get_number', '#' . $this->get_id(), $this ); -
apply_filters( 'ywsbs_get_payment_method', $this->get( 'payment_method', 'edit' ), $this ); -
apply_filters( 'ywsbs_get_price_html', $price_html, $cart_item, $product_id ); -
apply_filters( 'ywsbs_get_recurring_totals', $subscription->get( 'subscription_total' ), $subscription_id ); -
apply_filters( 'ywsbs_get_subscription_capabilities', $caps ); -
apply_filters( 'ywsbs_get_subscription_url', $view_subscription_url, $subscription_id, $admin ); -
apply_filters( 'ywsbs_is_limited', $is_limited, $product->get_id() ); -
apply_filters( 'ywsbs_is_limited_product', $is_limited, $product->get_id() ); -
apply_filters( 'ywsbs_item_data', $item_data, $subscription ); -
apply_filters( 'ywsbs_itemmeta_to_skip_in_renew_order', array( '_reduced_stock' ) ); -
apply_filters( 'ywsbs_limit_one_active_status', array( 'active', 'pending' ) ); -
apply_filters( 'ywsbs_load_assets', true ); -
apply_filters( 'ywsbs_load_paypal_standard_handler', isset( $settings['enabled'] ) && 'yes' === $settings['enabled'] ); -
apply_filters( 'ywsbs_max_failed_attemps_list', $arg ); -
apply_filters( 'ywsbs_max_failed_attempts_by_gateway', $max_failed_attempts, $gateway_id ); -
apply_filters( 'ywsbs_max_failed_attempts_list', $arg ); -
do_action( 'ywsbs_my_subscriptions_view_after' ); -
do_action( 'ywsbs_my_subscriptions_view_before' ); -
do_action( 'ywsbs_no_activated_just_cancelled', $this ); -
apply_filters( 'ywsbs_num_of_subscription_on_a_page_my_account', 10 ); -
apply_filters( 'ywsbs_order_formatted_line_subtotal', $subtotal, $item, $this, $product ); -
do_action( "ywsbs_pay_renew_order_with_{$gateway_id}", $renew_order ); -
apply_filters( 'ywsbs_payment_method_filter_query', $query ); -
apply_filters( 'ywsbs_paypal_limit_options', $options ); -
apply_filters( 'ywsbs_privacy_erase_personal_data', $erasure_enabled, $subscription ); -
apply_filters( 'ywsbs_privacy_export_personal_data_prop', $value, $prop, $subscription ); -
apply_filters( 'ywsbs_privacy_export_personal_data_props', array( 'id' => __( 'Subscription Number', 'yith-woocommerce-subscription' ), 'status' => __( 'Subscription Status', 'yith-woocommerce-subscription' ), 'date_created' => __( 'Subscription Creation Date', 'yith-woocommerce-subscription' ), 'subscription_total' => __( 'Subscription Total', 'yith-woocommerce-subscription' ), 'item' => __( 'Items Purchased', 'yith-woocommerce-subscription' ), '_cust... ); -
apply_filters( 'ywsbs_privacy_remove_personal_data_prop_value', $anon_value, $prop, $value, $data_type, $subscription ); -
apply_filters( 'ywsbs_privacy_remove_personal_data_props', array( '_customer_ip_address' => 'ip', '_customer_user_agent' => 'text', '_billing_first_name' => 'text', '_billing_last_name' => 'text', '_billing_company' => 'text', '_billing_address_1' => 'text', '_billing_address_2' => 'text', '_billing_city' => 'text', '_billing_postcode' => 'text', '_billing_state' => 'address_state', '_billing_country' => 'address_country', '_billing_phone' => 'phone', ... ); -
apply_filters( 'ywsbs_reattempt_failed_recurring_payments', 1 ); -
apply_filters( 'ywsbs_recurring_price', $recurring, $subscription ); -
apply_filters( 'ywsbs_register_panel_tabs', array( 'subscriptions' => array( 'title' => __( 'Subscriptions', 'yith-woocommerce-subscription' ), 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 ... ); -
apply_filters( 'ywsbs_renew_order_item_meta_data', is_array( $value ) && count( $value ) === 1 && '_fee' !== $key, $subscription->get( 'order_item_id' ), $key, $value ); -
apply_filters( 'ywsbs_renew_order_status', $new_status, $subscription ); -
do_action( 'ywsbs_renew_subscription', $order_id, $subscription_id ); -
apply_filters( 'ywsbs_roles_with_subscription_capabilities', $roles ); -
apply_filters( 'ywsbs_schedule_data_subscription_fields', $fields ); -
apply_filters( 'ywsbs_show_complete_price_on_substotal_cart', $show_complete_price ); -
apply_filters( 'ywsbs_show_ex_shipping', true ); -
apply_filters( 'ywsbs_show_message_to_limited_product', esc_html__( 'You have already an active subscription with this product.', 'yith-woocommerce-subscription' ), $product ); -
do_action( 'ywsbs_single_product_options_after_recurring_price', $product ); -
apply_filters( 'ywsbs_skip_create_renew_order', false, $subscription ); -
apply_filters( 'ywsbs_status', $options ); -
apply_filters( 'ywsbs_status_colors', $status_colors ); -
apply_filters( 'ywsbs_status_label_counter', $options ); -
apply_filters( "ywsbs_subscription_{$prop}", $value, $this ); -
apply_filters( 'ywsbs_subscription_can_be_active', $can_be_active, $this ); -
do_action( 'ywsbs_subscription_created', $subscription_id ); -
do_action( 'ywsbs_subscription_deleted', $this->id ); -
apply_filters( 'ywsbs_subscription_info_meta', $subscription_info, $new_cart, $new_cart_item_key, $cart_item ); -
apply_filters( 'ywsbs_subscription_is_editable', $is_editable, $key, $this ); -
do_action( 'ywsbs_subscription_loaded', $this ); -
apply_filters( 'ywsbs_subscription_max_length_formatted_for_price', $max_length_formatted, $product ); -
apply_filters( 'ywsbs_subscription_meta_on_cart', $cart_item_subscription_data, $product ); -
do_action( 'ywsbs_subscription_payment_complete', $subscription, $order ); -
apply_filters( 'ywsbs_subscription_period_for_price', $price_time_option_string, $product, $subscription_info ); -
apply_filters( 'ywsbs_subscription_recurring_price', $recurring_price, $product, $subscription_info ); -
do_action( "ywsbs_subscription_status_{$new_status}", $this->id ); -
do_action( "ywsbs_subscription_status_{$old_status}_to_{$new_status}", $this->id ); -
do_action( 'ywsbs_subscription_status_changed', $this->id, $old_status, $new_status ); -
apply_filters( 'ywsbs_subscription_status_counter_query', $query ); -
apply_filters( 'ywsbs_subscription_subtotal_html', $price_html, $cart_item['data'], $cart_item ); -
do_action( 'ywsbs_subscription_untrashed', $this->id ); -
apply_filters( 'ywsbs_subscription_view_title', sprintf( '%s %s - %s', __( 'Subscription', 'yith-woocommerce-subscription' ), $subscription->get_number(), $subscription->get_product_name() ), $subscription ); -
apply_filters( 'ywsbs_subscriptions_options', array( 'subscriptions' => $section ) ); -
apply_filters( 'ywsbs_test_on', YITH_YWSBS_TEST_ON ); -
apply_filters( 'ywsbs_time_options', $options ); -
apply_filters( 'ywsbs_user_has_subscription', $has_subscription, $user_id, $product_id, $status ); -
apply_filters( 'ywsbs_user_info_for_subscription_list', $buyer, $subscription, $user ); -
apply_filters( 'ywsbs_user_subscriptions_by_product', $product_subscriptions, $user_id, $product_id, $status ); -
apply_filters( 'ywsbs_valid_status_to_trash', array( 'pending', 'cancelled', 'expired' ) ); -
apply_filters( 'ywsbs_view_endpoint', 'view-subscription' ); -
apply_filters_deprecated( 'ywsbs-recurring-price', array( $recurring, $subscription ), '2.0.0', 'ywsbs_recurring_price', 'This filter will be removed in the next major release' );
Generated from YITH WooCommerce 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: