Beltoft Gift Cards for WooCommerce 1.7.0 has 13 actions and 15 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 Beltoft Gift Cards for WooCommerce fires an action
add_action( 'bgcw_gift_card_created', function( $gc_id, $order ) {
// Your code runs here.
}, 10, 2 );
// Change a value Beltoft Gift Cards for WooCommerce is about to use
add_filter( 'bgcw_show_recipient_email_field', function( $value, $product ) {
// Change $value here.
return $value;
}, 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 a gift card is created. */ do_action( 'bgcw_gift_card_created', $gc_id, $order ); -
/** * Filter whether to show the Recipient Email field on the product page. */ apply_filters( 'bgcw_show_recipient_email_field', true, $product ); -
/** * Filter cart item data for gift card products. */ apply_filters( 'bgcw_add_to_cart_data', $cart_data, $product_id ); -
/** * Fires after the gift cards list table. */ do_action( 'bgcw_admin_after_gift_cards_list' ); -
/** * Fires to render a custom admin tab's content. */ do_action( "bgcw_admin_tab_{$current_tab}" ); -
/** * Filter the admin page tabs. */ apply_filters( 'bgcw_admin_tabs', $tabs ); -
/** * Fires after a gift card balance is deducted for an order. */ do_action( 'bgcw_after_deduct_balance', $gc->id, $amount, $order_id ); -
/** * Fires after a gift card balance is restored from a refund. */ do_action( 'bgcw_after_restore_balance', $gc->id, $restored, $order_id ); -
/** * Filter whether a regular coupon may discount a gift card product. */ apply_filters( 'bgcw_coupon_valid_for_gift_card', false, $coupon, $product ); -
/** * Fires after the stats cards on the dashboard tab. */ do_action( 'bgcw_dashboard_after_stats' ); -
/** * Fires after the gift card design section in the email. */ do_action( 'bgcw_email_after_card_design', $gift_card, $order ); -
/** * Fires before the gift card design section in the email. */ do_action( 'bgcw_email_before_card_design', $gift_card, $order ); -
/** * Filter the HTML email template path. */ apply_filters( 'bgcw_email_template_html', $this->template_html, $this->gift_card ); -
/** * Filter gift card data before insertion. */ apply_filters( 'bgcw_gift_card_creation_args', $gc_data, $order, $item ); -
/** * Fires after a gift card row has been deleted. */ do_action( 'bgcw_gift_card_deleted', (int) $id ); -
/** * Fires inside each gift card row on the My Account page, after the built-in * buttons. */ do_action( 'bgcw_my_account_card_actions', $gc ); -
/** * Fires after recipient fields, before add-to-cart button. */ do_action( 'bgcw_product_form_after_recipient_fields', $product ); -
/** * Filter whether this refund should create store credit instead. */ apply_filters( 'bgcw_refund_as_store_credit', false, $order_id, $gc->id, $amount ); -
/** * Filter REST access to gift card endpoints. */ apply_filters( 'bgcw_rest_permission', $allowed, $request ); -
/** * Filter whether the gift card email should be sent immediately. */ apply_filters( 'bgcw_should_send_email_now', true, $gift_card_id, $order ); -
/** * Filter whether to show the Personal Message field on the product page. */ apply_filters( 'bgcw_show_personal_message_field', true, $product ); -
/** * Filter whether to show the Recipient Name field on the product page. */ apply_filters( 'bgcw_show_recipient_name_field', true, $product ); -
/** * Filter summary stats for the dashboard. */ apply_filters( 'bgcw_summary_stats', $stats ); -
/** * Filter whether the custom-amount limits apply to this add-to-cart. */ apply_filters( 'bgcw_validate_amount_limits', true, $product_id, $amount ); -
apply_filters( 'bgcw_add_to_cart_validation', $passed, $product_id, $post_data ); -
do_action( 'woocommerce_email_header', $email_heading, $email );
Generated from Beltoft 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: