WebToffee Gift Cards for WooCommerce 1.3.2 has 20 actions and 66 filters, read directly from its source code on Nov 18, 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 WebToffee Gift Cards for WooCommerce fires an action
add_action( 'wt_gc_after_store_credit_coupon_generated', function( $coupon_obj, $arg2, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value WebToffee Gift Cards for WooCommerce is about to use
add_filter( 'active_plugins', function( $active_plugins ) {
// Change $active_plugins here.
return $active_plugins;
}, 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
-
/** * Filter hook to alter active plugins. */ apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
/** * Filter the additional content printed on the gift card email. */ apply_filters( 'wt_gc_alter_gift_card_email_custom_addition_content', $wbte_custom_addition_content, $wbte_coupon_obj ); -
/** * After store credit coupon generated */ do_action( 'wt_gc_after_store_credit_coupon_generated', $coupon_obj, 'admin_send_gift_card', null ); -
/** * Hook to alter price on Giftcard */ apply_filters( 'wbte_gc_alter_prices_on_giftcard', wc_price($amount, array('currency' => $args['currency'])), $args ); -
/** * Alter theme specific CSS styles for product page */ apply_filters( 'wbte_gc_alter_product_page_theme_specific_css_styles', $styles ); -
/** * Filter to override whether store credit can be used to purchase gift cards. */ apply_filters( 'wbte_gc_free_allow_to_purchase_gift_cards', $allowed ); -
/** * Filter whether the configured coupon prefix/suffix/length is applied to gift * cards created via the admin "Send gift card" option. */ apply_filters( 'wbte_gc_free_apply_coupon_format_on_admin_send', true, $email_id, $credit_amount ); -
/** * Filter to alter the allowed HTML */ apply_filters( 'wbte_gc_kses_allowed_html', $new_allowed_html ); -
/** * Filter to alter alignwide CSS required themes */ apply_filters( 'wt_gc_alignwide_css_required_themes', $alignwide_required_themes ); -
/** * Alter email args before sending gift card */ apply_filters( 'wt_gc_alter_admin_gift_card_email_args', $credit_email_args, $coupon_obj ); -
/** * Filter to alter the dummy template data */ apply_filters( 'wt_gc_alter_dummy_template', array( 'image_url' => esc_url( self::get_template_location() . 'no-image.png' ), 'top_bg_color' => '#fff', 'bottom_bg_color' => '#fff', 'category' => 'dummy_template', ) ); -
/** * Filter the additional content printed on the gift card PDF. */ apply_filters( 'wt_gc_alter_gift_card_pdf_custom_addition_content', $wbte_custom_addition_content, $wbte_coupon_obj ); -
/** * Alter the HTML before generating PDF */ apply_filters( 'wt_gc_alter_giftcard_pdf_html', $html, $coupon_obj, $args ); -
/** * Filter to alter the date. Some plugins provide custom coupon expiry options */ apply_filters( 'wt_gc_alter_store_credit_expiry', $coupon->get_date_expires(), $coupon ); -
/** * Check and change order status to completed when all coupons are mailed. */ apply_filters( 'wt_gc_change_order_status_to_completed_on_giftcard_email', true ); -
/** * Filter to alter failed order status array. */ apply_filters( 'wt_gc_coupon_failed_order_statuses', $failed_status ); -
/** * Filter to alter success order status array. */ apply_filters( 'wt_gc_coupon_success_order_statuses', $order_statuses ); -
/** * Re-enable smart coupon store credit */ apply_filters( 'wt_gc_force_reenable_smart_coupon_store_credit', true ); -
/** * Alter the hook name to inject product page */ apply_filters( 'wt_gc_gift_product_page_design_hook', $hook ); -
/** * Alter `settings saved` response */ apply_filters( 'wt_gc_intl_alter_setting_saved_response', $out, $base_id ); -
/** * Alter payment gateways list to remove on gift card purchase */ apply_filters( 'wt_gc_payment_gateways_to_disable_on_giftcard_purchase', array( 'cod' ) ); -
/** * Remove applied store credit coupons. Default: true */ apply_filters( 'wt_gc_remove_store_credit_from_order', true, $order, $old_status, $new_status ); -
/** * While setting up the product page for gift card. We need to remove some * default product page blocks. This filter allows to customize which blocks to * remove */ apply_filters( 'wt_gc_single_product_page_blocks_to_remove', $to_remove_blocks ); -
apply_filters( 'wt_gc_alter_giftcard_email_price', $wbte_coupon_obj->get_amount(), $wbte_coupon_obj ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'wt_gc_alter_gift_card_form_mandatory_fields', array( 'reciever_email' ) ); -
do_action( 'wt_gc_gift_card_email_after_coupon_code', $wbte_coupon_obj ); -
do_action( 'wt_gc_gift_card_email_content', $wbte_coupon_obj ); -
do_action( 'wt_gc_send_gift_card_coupon_to_customer', $credit_email_args ); -
apply_filters( 'wbte_gc_balance_check_restricted_email', $args ); -
apply_filters( 'wbte_gc_balance_check_subtitle', __('Enter Gift Card code', 'wt-gift-cards-woocommerce') ); -
apply_filters( 'wbte_gc_balance_check_title', __('CHECK YOUR BALANCE', 'wt-gift-cards-woocommerce') ); -
apply_filters( 'woocommerce_disable_compatibility_layer', false ); -
apply_filters( 'woocommerce_mail_content', $current_email->style_inline( $content ) ); -
apply_filters( "wt_{$plugin_id}_alter_role_access", $roles ); -
apply_filters( "wt_gc_{$type}_settings_tabhead", $title_arr ); -
apply_filters( 'wt_gc_add_gift_card_product_page_css_class', '' ); -
apply_filters( 'wt_gc_admin_coupon_set_email_restriction', $force_set_email_restriction ); -
apply_filters( 'wt_gc_alter_gift_card_product_meta_list', array( '_wt_gc_purchase_options' => array( 'default' => array( 'predefined' ), 'type' => 'text_arr', ), '_wt_gc_amounts' => array( 'default' => '', 'type' => 'text', ), '_wt_gc_enable_template' => array( 'default' => 'yes', 'type' => 'text', ), '_wt_gc_templates' => array( 'default' => array_keys( self::get_gift_card_templates( true ) ), 'type' => 'text_arr', ), ) ); -
apply_filters( 'wt_gc_alter_gift_card_product_page_title', $wbte_gift_card_product_page_title, $product_id ); -
apply_filters( 'wt_gc_alter_gift_card_product_visible_templates', $templates, $product_id ); -
apply_filters( 'wt_gc_alter_gift_card_user_option_labels', array( 'email' => __( 'Email to recipient', 'wt-gift-cards-woocommerce' ), ) ); -
apply_filters( 'wt_gc_alter_giftcard_pdf_price', $wbte_coupon_obj->get_amount(), $wbte_coupon_obj ); -
apply_filters( 'wt_gc_alter_giftcard_predifined_amounts', array_unique( array_filter( $denominations ) ) ); -
apply_filters( 'wt_gc_alter_option', $vl, $the_options, $option_name, $base ); -
apply_filters( 'wt_gc_alter_purchased_credit_sending_status', $status_arr, $order ); -
apply_filters( 'wt_gc_alter_settings', $settings, $base_id ); -
apply_filters( 'wt_gc_alter_tooltip_data', self::$tooltip_arr ); -
do_action( 'wt_gc_before_order_used_store_credit_updated', $credit_used, $order_id, $action ); -
apply_filters( 'wt_gc_calculate_totals_hook_priority', $priority, $hook ); -
apply_filters( 'wt_gc_coupon_set_email_restriction', $force_set_email_restriction ); -
apply_filters( 'wt_gc_delete_store_credit_after_use', false, $coupon ); -
apply_filters( 'wt_gc_force_remove_smart_coupon_store_credit', true ); -
do_action( 'wt_gc_general_settings' ); -
do_action( 'wt_gc_gift_card_after_gift_to_friend_form' ); -
do_action( 'wt_gc_gift_card_after_send_gift_card_form' ); -
apply_filters( 'wt_gc_gift_card_message', '', $template ); -
apply_filters( 'wt_gc_gift_card_product_is_virtual', true ); -
apply_filters( 'wt_gc_gift_card_product_page_templates_main_title', $templates_main_title, $product_id ); -
do_action( 'wt_gc_gift_card_setup_form' ); -
apply_filters( 'wt_gc_gift_card_template_images', $design_images ); -
apply_filters( 'wt_gc_gift_card_templates', $design_images ); -
apply_filters( 'wt_gc_gift_product_actions', $wbte_actions, $wbte_product_id ); -
apply_filters( 'wt_gc_include_admin_css_file', false ); -
apply_filters( 'wt_gc_include_admin_js_file', false ); -
do_action( 'wt_gc_intl_after_setting_update', $the_options, $base_id ); -
apply_filters( 'wt_gc_intl_alter_fields_needed_default_val', array(), $base_id ); -
apply_filters( 'wt_gc_intl_alter_validation_rule', $validation_rule, $base_id ); -
do_action( 'wt_gc_intl_before_setting_update', $the_options, $base_id ); -
apply_filters( 'wt_gc_module_default_settings', $settings, $base_id ); -
do_action( 'wt_gc_on_order_reimburse', $order, $old_status, $new_status ); -
do_action( 'wt_gc_pdf_coupon_css' ); -
do_action( 'wt_gc_plugin_after_settings_tab' ); -
do_action( 'wt_gc_plugin_before_settings_tab' ); -
do_action( 'wt_gc_plugin_out_settings_form', array( 'tab_key' => $wbte_tab_key ) ); -
do_action( 'wt_gc_plugin_settings_form', array( 'tab_key' => $wbte_tab_key ) ); -
apply_filters( 'wt_gc_product_categories_with_ancestors', false, $product_id ); -
apply_filters( 'wt_gc_store_credit_validation', $valid, $coupon ); -
do_action( 'wt_gs_intl_general_settings_tab_content' ); -
apply_filters( 'wt_pklist_mpdf_get_lib_info', array() ); -
apply_filters( 'wt_sc_store_credit_disabled_products', array() ); -
apply_filters( 'wt_send_credit_coupon_on_order_success_status', true, $order_id, $coupon_template_data );
Generated from WebToffee Gift Cards 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: