BrainlessITC Gift Cards for WooCommerce 1.0.1 has 38 actions and 49 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 BrainlessITC Gift Cards for WooCommerce fires an action
add_action( 'bitcgc_admin_card_fields', function( $card ) {
// Your code runs here.
}, 10, 1 );
// Change a value BrainlessITC Gift Cards for WooCommerce is about to use
add_filter( 'bitcgc_admin_card_delivery_text', function( $bitcgc_sent, $card ) {
// Change $bitcgc_sent here.
return $bitcgc_sent;
}, 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
-
/** * Extra edit rows. */ do_action( 'bitcgc_admin_card_fields', $card ); -
/** * Fires after the gift card details in the email. */ do_action( 'bitcgc_email_after_card', $card, $email ); -
/** * Filter the "Email sent" text on the gift card screen. */ apply_filters( 'bitcgc_admin_card_delivery_text', $bitcgc_sent, $card ); -
/** * Fires after a card was saved on its admin screen. The nonce was verified. */ do_action( 'bitcgc_admin_card_saved', $card_id ); -
/** * Extra sidebar boxes on the gift card screen. */ do_action( 'bitcgc_admin_card_sidebar', $card ); -
/** * Extra summary rows. */ do_action( 'bitcgc_admin_card_summary', $card ); -
/** * Filter the data of a card created on the "Add gift card" screen. The request * nonce was verified. */ apply_filters( 'bitcgc_admin_create_card_args', $args ); -
/** * Output of a custom list column. */ apply_filters( 'bitcgc_admin_list_column', '', $item, $column_name ); -
/** * Filter the gift cards list columns. */ apply_filters( 'bitcgc_admin_list_columns', $columns ); -
/** * Fires after the title of the gift cards list. */ do_action( 'bitcgc_admin_list_title_actions' ); -
/** * Filter admin notice messages (key => [type, message]). */ apply_filters( 'bitcgc_admin_notice_messages', $messages ); -
/** * Fires after the settings of the gift cards tab. */ do_action( 'bitcgc_after_settings' ); -
/** * Filter the balance check result message. */ apply_filters( 'bitcgc_balance_message', $message, $card, $status ); -
/** * Fires before a card is deleted. */ do_action( 'bitcgc_before_delete_card', $id ); -
/** * Filter whether a card can be applied to the current cart right now. */ apply_filters( 'bitcgc_can_apply_card', true, $card ); -
/** * Fires after a gift card was applied to the cart. */ do_action( 'bitcgc_card_applied', $card ); -
/** * Filter additional card columns that create() and update() may write. Code * that registers a column must also add it to the table. */ apply_filters( 'bitcgc_card_columns', array() ); -
/** * Fires after a gift card was created. */ do_action( 'bitcgc_card_created', $card, $args ); -
/** * Fires after a gift card email was sent. */ do_action( 'bitcgc_card_delivered', $this->cards->find( $card->get_id() ), $resend ); -
/** * Filter the status shown for a card in lists and screens. */ apply_filters( 'bitcgc_card_display_status', $status, $this ); -
/** * Filter the gift card image URL used in emails. */ apply_filters( 'bitcgc_card_image_url', $url ? $url : '', $card ); -
/** * Filter whether a card can be used to pay. */ apply_filters( 'bitcgc_card_is_usable', $usable, $this ); -
/** * Fires after a card was issued for an order; delivery is hooked here. */ do_action( 'bitcgc_card_issued', $card, $order ); -
/** * Filter the conditions that make a card belong to a customer (joined with * OR). */ apply_filters( 'bitcgc_card_query_customer_clauses', array( $or, $or_params ), $args ); -
/** * Filter the sortable columns of card queries (orderby key => column). */ apply_filters( 'bitcgc_card_query_orderby_columns', $orderby_map ); -
/** * Filter the SQL condition of a status filter in card queries. */ apply_filters( 'bitcgc_card_query_status_clause', $status_clause, (string) $args['status'] ); -
/** * Fires after a card status changed. */ do_action( 'bitcgc_card_status_changed', $card->get_id(), $status, $card->get_status() ); -
/** * Filter the card status labels (status => label). */ apply_filters( 'bitcgc_card_status_labels', $labels ); -
/** * Filter the statuses a card can be set to. */ apply_filters( 'bitcgc_card_stored_statuses', array() ); -
/** * Fires after card fields were updated. */ do_action( 'bitcgc_card_updated', absint( $id ), $data ); -
/** * Filter the part of the cart total that can be paid with gift cards. */ apply_filters( 'bitcgc_cart_eligible_total', $eligible, (float) $total, $cart ); -
/** * Filter the number of 4-character groups in a code (3 to 8). */ apply_filters( 'bitcgc_code_groups', 4 ); -
/** * Filter the data of a card about to be created. */ apply_filters( 'bitcgc_create_card_args', $args ); -
/** * Filter whether a card is emailed right after it is issued. */ apply_filters( 'bitcgc_deliver_card_now', true, $card ); -
/** * Content after the code in the gift card email (HTML). */ do_action( 'bitcgc_email_after_code', $card, $bitcgc_text_color ); -
/** * Content after the code in the plain text gift card email. */ do_action( 'bitcgc_email_after_code_plain', $card ); -
/** * Filter the plugin's email classes. */ apply_filters( 'bitcgc_email_classes', $emails ); -
/** * Fires once the Freemius SDK is initiated. */ do_action( 'bitcgc_fs_loaded' ); -
/** * Filter a newly generated code. Must stay unique and contain only A-Z, 0-9 * and dashes. */ apply_filters( 'bitcgc_generated_code', $code ); -
/** * Filter attachments of the gift card email. */ apply_filters( 'bitcgc_gift_card_email_attachments', $attachments, $this->card ); -
/** * Fires after the tables were created or upgraded. */ do_action( 'bitcgc_installed' ); -
/** * Filter the error shown when the chosen amount is not valid. */ apply_filters( 'bitcgc_invalid_amount_message', __( 'Please choose one of the available amounts.', 'brainlessitc-gift-cards-for-woocommerce' ), $amount, $product ); -
/** * Filter whether an amount can be bought with this product. */ apply_filters( 'bitcgc_is_valid_amount', $valid, $amount, $this ); -
/** * Filter the data of a card issued for an order item. */ apply_filters( 'bitcgc_issue_card_args', $args, $order, $item, $data, $index ); -
/** * Filter whether the gift card frontend assets load on the current page. */ apply_filters( 'bitcgc_load_frontend_assets', $load ); -
/** * Fires once the plugin is fully loaded. */ do_action( 'bitcgc_loaded', $this ); -
/** * Filter the maximum number of gift cards per order. */ apply_filters( 'bitcgc_max_cards_per_order', 5 ); -
/** * Filter a setting value. */ apply_filters( "bitcgc_option_{$key}", $value ); -
/** * Fires after gift cards were issued for an order. */ do_action( 'bitcgc_order_cards_issued', $created, $order ); -
/** * Fires after the gift card balances of an order were synchronised. */ do_action( 'bitcgc_order_reconciled', $order, $release ); -
/** * Filter the amount chosen on the purchase form. The purchase nonce was * verified. */ apply_filters( 'bitcgc_posted_amount', isset( $values['amount'] ) ? (float) $values['amount'] : 0.0, $product ); -
/** * Filter the preset amounts of a gift card product. */ apply_filters( 'bitcgc_product_amounts', $amounts, $this ); -
/** * Filter whether a gift card product offers amounts to buy. */ apply_filters( 'bitcgc_product_has_amounts', (bool) $this->get_amounts(), $this ); -
/** * Filter whether a gift card product is virtual (no shipping). */ apply_filters( 'bitcgc_product_is_virtual', true, $this ); -
/** * Add fields to the gift card product panel. */ do_action( 'bitcgc_product_options', $product_object ); -
/** * Fires when a gift card product is saved from the admin. */ do_action( 'bitcgc_product_save', $product ); -
/** * Filter the purchase data stored with the cart item (extensions add values to * "extra"). */ apply_filters( 'bitcgc_purchase_data', $data, $product ); -
/** * Filter the rows describing a gift card purchase (cart, order). */ apply_filters( 'bitcgc_purchase_description', $rows, $data ); -
/** * Fields right after the amount. */ do_action( 'bitcgc_purchase_form_after_amount', $product ); -
/** * Content at the end of the amount field. */ do_action( 'bitcgc_purchase_form_amounts_after', $product, $values ); -
/** * Additional amount choices after the preset amounts. */ do_action( 'bitcgc_purchase_form_amounts_list_end', $product, $values ); -
/** * Additional purchase fields. */ do_action( 'bitcgc_purchase_form_fields', $product ); -
/** * Extra recipient fields. */ do_action( 'bitcgc_purchase_form_recipient_fields', $product ); -
/** * Filter whether buying this gift card requires a recipient email. */ apply_filters( 'bitcgc_purchase_requires_email', true, $product ); -
/** * Filter the number of failed gift card lookups allowed per visitor per * window. */ apply_filters( 'bitcgc_rate_limit_attempts', 10 ); -
/** * Filter the rate limit window in seconds. */ apply_filters( 'bitcgc_rate_limit_window', 15 * MINUTE_IN_SECONDS ); -
/** * Filter the default settings. */ apply_filters( 'bitcgc_settings_defaults', $defaults ); -
/** * Filter the default (plugin) template directory for a template. */ apply_filters( 'bitcgc_template_default_path', BITCGC_PATH . 'templates/', $template_name ); -
/** * Filter the transaction type labels (type => label). */ apply_filters( 'bitcgc_transaction_labels', $labels ); -
/** * Filter whether a card can be used in the current cart. */ apply_filters( 'bitcgc_validate_card_for_cart', true, $card ); -
/** * Validate additional purchase fields. Add errors to $errors. Callbacks can * read their own fields; the purchase nonce was verified. */ do_action( 'bitcgc_validate_purchase', $errors, $data, $product, $quantity ); -
apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ); -
do_action( 'woocommerce_after_add_to_cart_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_after_add_to_cart_quantity' ); -
do_action( 'woocommerce_before_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_quantity' ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'woocommerce_get_price_html', $html, $this ); -
apply_filters( 'woocommerce_is_purchasable', $purchasable, $this ); -
woocommerce_product_add_to_cart_description
filter Used by 10 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_add_to_cart_description', $text, $this ); -
apply_filters( 'woocommerce_product_add_to_cart_text', $text, $this ); -
apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_permalink(), $this );
Generated from BrainlessITC 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: