Presentero 1.3.2 has 53 actions and 67 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 Presentero fires an action
add_action( 'presentero_gc_apply_form_fields', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Presentero is about to use
add_filter( 'presentero_gc_can_view_balance', function( $value, $card, $context ) {
// 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
-
/** * Output extra fields next to the gift card code, such as a PIN. Give each * field the class presentero-gc-field and a data-field attribute. */ do_action( 'presentero_gc_apply_form_fields' ); -
/** * Filter whether a visitor may see a card's balance. Return a WP_Error to * refuse. */ apply_filters( 'presentero_gc_can_view_balance', true, $card, $context ); -
/** * Filter the gift card data stored on a cart item. */ apply_filters( 'presentero_gc_cart_item_data', $item, $product, $posted ); -
/** * This filter is documented in includes/class-presentero-gc-order.php */ apply_filters( 'presentero_gc_line_creates_cards', true, $item, $order ); -
/** * Filter the extra request fields passed along with a code. */ apply_filters( 'presentero_gc_request_fields', array() ); -
/** * This filter is documented in wp-includes/pluggable.php */ apply_filters( 'nonce_life', DAY_IN_SECONDS, self::NONCE ); -
/** * Fires after the plugin has been activated. */ do_action( 'presentero_gc_activated' ); -
/** * Fires after an activity log entry was written. */ do_action( 'presentero_gc_activity_logged', (int) $card_id, $action, $args ); -
/** * Fires after the Presentero admin assets were loaded. */ do_action( 'presentero_gc_admin_assets', $id ); -
/** * Fires after a card was saved from the card screen. */ do_action( 'presentero_gc_admin_card_saved', $id ); -
/** * Filter the card data saved from the card screen. */ apply_filters( 'presentero_gc_admin_save_card_data', $data, $card ); -
/** * Fires after an admin set a card balance. */ do_action( 'presentero_gc_after_adjust', (int) $card_id, $new_balance, $old_balance ); -
/** * Fires after money was added to a card. */ do_action( 'presentero_gc_after_credit', (int) $card_id, $amount, $after, $args ); -
/** * Fires after money was taken off a card. */ do_action( 'presentero_gc_after_debit', (int) $card_id, $take, $after, (int) $args['order_id'] ); -
/** * Filter the small note shown under an amount, for example a discounted price. */ apply_filters( 'presentero_gc_amount_note', '', $presentero_gc_amount, $product ); -
/** * Filter card data just before it is saved. */ apply_filters( 'presentero_gc_before_create_card', $data, $args ); -
/** * Fires before a card is deleted. */ do_action( 'presentero_gc_before_delete_card', $id ); -
/** * Filter extra fields shown next to the gift card code in the blocks. */ apply_filters( 'presentero_gc_block_fields', array() ); -
/** * Run a custom bulk action on one card. */ apply_filters( 'presentero_gc_bulk_action', $done, $action, $id ); -
/** * Filter whether a card may be applied. Return a WP_Error to refuse. */ apply_filters( 'presentero_gc_can_apply', true, $card, $context ); -
/** * Filter whether a card can pay in a currency. */ apply_filters( 'presentero_gc_card_accepts_currency', $accepts, $this, $currency ); -
/** * Run a custom action on a card. */ do_action( 'presentero_gc_card_action', $do, $card ); -
/** * Filter whether a card can be used on this cart. Return a WP_Error to refuse. */ apply_filters( 'presentero_gc_card_applicable', true, $card, $cart ); -
/** * Filter the data a purchased card is created with. */ apply_filters( 'presentero_gc_card_args_from_order', $args, $item, $order, $index ); -
/** * Fires after a customer added a card to their wallet. */ do_action( 'presentero_gc_card_claimed', $card->get_id(), (int) $user_id ); -
/** * Fires after a gift card was created. */ do_action( 'presentero_gc_card_created', $card, $args ); -
/** * Fires after a purchased card was created. */ do_action( 'presentero_gc_card_generated', $card, $order, $item ); -
/** * Fires after a gift card email was sent. */ do_action( 'presentero_gc_card_sent', $card->get_id(), (bool) $resend ); -
/** * Output notices above the gift card list, for example the batch being shown. */ do_action( 'presentero_gc_cards_list_before' ); -
/** * Filter the gift card details shown on a cart line. */ apply_filters( 'presentero_gc_cart_item_display', $item_data, $cart_item ); -
/** * Filter the visitor IP address used to count wrong gift card codes. */ apply_filters( 'presentero_gc_client_ip', $ip, presentero_gc_clean_ip( $remote ) ); -
/** * Filter the address ranges Cloudflare connects from. */ apply_filters( 'presentero_gc_cloudflare_ranges', array( '173.245.48.0/20', '103.21.244.0/22', '103.22.200.0/22', '103.31.4.0/22', '141.101.64.0/18', '108.162.192.0/18', '190.93.240.0/20', '188.114.96.0/20', '197.234.240.0/22', '198.41.128.0/17', '162.158.0.0/15', '104.16.0.0/13', '104.24.0.0/14', '172.64.0.0/13', '131.0.72.0/22', '2400:cb00::/32', '2606:4700::/32', '2803:f800::/32', '2405:b500::/32', '2405:8100::/32', '2a06:98c0::/29', '2c0f:... ); -
/** * Fires after a code was applied to the cart. */ do_action( 'presentero_gc_code_applied', $card ); -
/** * Fires after a code was removed from the cart. */ do_action( 'presentero_gc_code_removed', $code ); -
/** * Filter whether store coupons may discount gift card products. */ apply_filters( 'presentero_gc_coupons_on_gift_cards', presentero_gc_enabled( 'coupons_on_gift_cards' ) ); -
/** * Filter the currencies offered when cards are issued and shown in reports. */ apply_filters( 'presentero_gc_currencies', array_values( array_unique( array_filter( $list ) ) ) ); -
/** * Filter the message shown when a card is in another currency. */ apply_filters( 'presentero_gc_currency_mismatch_message', $message, $this, $currency ); -
/** * Fires during the daily maintenance run. */ do_action( 'presentero_gc_daily_tasks' ); -
/** * Fires after the plugin has been deactivated. */ do_action( 'presentero_gc_deactivated' ); -
/** * Filter the options of a gift card added to the cart without the product * form. Return an empty array to leave the line without options. */ apply_filters( 'presentero_gc_default_cart_item_data', $item, $product ); -
/** * Fires after a design was saved. */ do_action( 'presentero_gc_design_saved', $id ); -
/** * Filter the designs available. */ apply_filters( 'presentero_gc_designs', $designs, $active_only ); -
/** * Filter the documentation. Extensions add sections or entries here. */ apply_filters( 'presentero_gc_docs_sections', $sections ); -
/** * Filter the most gift cards may pay on this cart. */ apply_filters( 'presentero_gc_eligible_total', $cap, $cart, (float) $total ); -
/** * Add rows to the card details table in the gift card email. */ do_action( 'presentero_gc_email_card_details', $card, $email ); -
/** * This action is documented in templates/emails/card-received.php */ do_action( 'presentero_gc_email_card_details_plain', $card, $email ); -
/** * Fires when the storefront assets are loaded, so extensions can load theirs. */ do_action( 'presentero_gc_enqueue_frontend' ); -
/** * Filter the amount gift cards may not pay for. */ apply_filters( 'presentero_gc_excluded_amount', $excluded, $cart ); -
/** * Filter the CSS classes of the purchase form. */ apply_filters( 'presentero_gc_form_classes', array( 'cart', 'presentero-gc-form', 'presentero-gc-form--steps' ), $product ); -
/** * Filter the product form fields read when a gift card is added to the cart. */ apply_filters( 'presentero_gc_form_fields', array( 'presentero_gc_amount' => 'text', 'presentero_gc_custom_amount' => 'text', 'presentero_gc_template' => 'key', 'presentero_gc_to_name' => 'text', 'presentero_gc_to_email' => 'email', 'presentero_gc_from_name' => 'text', 'presentero_gc_message' => 'textarea', ) ); -
/** * Filter whether pay later options are hidden while gift cards are bought. */ apply_filters( 'presentero_gc_hide_pay_later', presentero_gc_enabled( 'hide_pay_later' ) ); -
/** * Filter whether the Shipping tab is hidden for gift card products. */ apply_filters( 'presentero_gc_hide_shipping_tab', true ); -
/** * Filter the price paid for a gift card, which starts as its value. */ apply_filters( 'presentero_gc_item_price', $amount, $cart_item ); -
/** * Filter the options given to a paid gift card line that has none. */ apply_filters( 'presentero_gc_line_data_from_order', $data, $item, $order ); -
/** * Fires once every component has been started. */ do_action( 'presentero_gc_loaded', $this ); -
/** * Output more in the Gift cards box on the order screen. */ do_action( 'presentero_gc_order_box_after', $order, $bought ); -
/** * Filter the gift card details shown under an order line, as key => array( * label, value ). */ apply_filters( 'presentero_gc_order_item_rows', $rows, $item, $data ); -
/** * Fires when gift card lines of an order were refunded. */ do_action( 'presentero_gc_order_line_refunded', $order, $item, $quantity, $refund ); -
/** * Fires after gift cards paid for an order. */ do_action( 'presentero_gc_order_paid_with_cards', $order, $debited ); -
/** * Filter whether this request buys a gift card, for the pay later options. */ apply_filters( 'presentero_gc_pay_later_gift_card_involved', $involved ); -
/** * Filter the gift card amount reported to PayPal for the cart. */ apply_filters( 'presentero_gc_paypal_cart_discount', Presentero_GC_Cart::total_deduction() ); -
/** * Filter the gift card amount reported to PayPal for an order. */ apply_filters( 'presentero_gc_paypal_order_discount', $amount, $order ); -
/** * Filter the gift card amount reported to PayPal for a Store API cart, in * minor units. */ apply_filters( 'presentero_gc_paypal_store_api_discount', $minor, $totals ); -
/** * Filter the preset amounts of a gift card product. */ apply_filters( 'presentero_gc_product_amounts', $amounts, $this ); -
/** * Filter the designs a product offers. */ apply_filters( 'presentero_gc_product_designs', $designs, (int) $product_id ); -
/** * Filter whether a gift card product is shipped as a physical card. */ apply_filters( 'presentero_gc_product_is_physical', false, $this ); -
/** * Output extra sections in the Gift card tab. */ do_action( 'presentero_gc_product_panel', $product ); -
/** * Filter the data passed to the product page script. */ apply_filters( 'presentero_gc_product_script_data', $config, $product ); -
/** * Fires when a failed order was paid but its gift cards could not pay again. */ do_action( 'presentero_gc_redebit_failed', $order, $result, $missing ); -
/** * Filter whether the product images are replaced by the live card preview. */ apply_filters( 'presentero_gc_replace_gallery', true, $product ); -
/** * Filter whether this purchase needs a recipient email. */ apply_filters( 'presentero_gc_requires_recipient_email', ! presentero_gc_enabled( 'send_to_buyer' ) && ! $product->is_physical_card(), $product, $posted ); -
/** * Filter whether gift card balances are given back when a payment fails. */ apply_filters( 'presentero_gc_restore_on_failed', true, $order ); -
/** * Fires after part of a gift card payment was given back to the card. */ do_action( 'presentero_gc_returned_to_card', $order, $card_id, $amount ); -
/** * Fires when a gift card product is saved, so extensions can save their own * fields. Read fields with Presentero_GC_Admin_Product::posted(), which checks * the nonce. */ do_action( 'presentero_gc_save_product', $product ); -
/** * Filter whether a new purchased card is emailed straight away. */ apply_filters( 'presentero_gc_send_on_create', 'virtual' === $card->get_type(), $card, $order ); -
/** * Output actions for a card the customer sent, such as changing a scheduled * delivery. */ do_action( 'presentero_gc_sent_card_actions', $presentero_gc_card ); -
/** * Fires after a settings tab was saved. */ do_action( 'presentero_gc_settings_saved', $tab, $values ); -
/** * Filter the settings schema. Extensions add tabs and fields here. */ apply_filters( 'presentero_gc_settings_schema', self::build_schema() ); -
/** * Fires after a card status changed. */ do_action( 'presentero_gc_status_changed', (int) $id, $status, $old ); -
/** * Fires after the plugin tables were created or updated. */ do_action( 'presentero_gc_tables_created' ); -
/** * Filter whether a gift card can be added to the cart. Return a WP_Error to * refuse. */ apply_filters( 'presentero_gc_validate_add_to_cart', true, $product, $posted, (int) $quantity ); -
/** * Output more above the list of cards in the wallet. */ do_action( 'presentero_gc_wallet_before_cards', $owned ); -
/** * Output extra actions for a card in the wallet. */ do_action( 'presentero_gc_wallet_card_actions', $presentero_gc_card ); -
apply_filters( 'presentero_gc_activity_labels', array( 'created' => __( 'Created', 'presentero-gift-cards-for-woocommerce' ), 'debit' => __( 'Redeemed', 'presentero-gift-cards-for-woocommerce' ), 'credit' => __( 'Balance added', 'presentero-gift-cards-for-woocommerce' ), 'adjust' => __( 'Balance adjusted', 'presentero-gift-cards-for-woocommerce' ), 'status' => __( 'Status changed', 'presentero-gift-cards-for-woocommerce' ), 'updated' => __( ... ); -
apply_filters( 'presentero_gc_bulk_actions', array( 'activate' => __( 'Activate', 'presentero-gift-cards-for-woocommerce' ), 'disable' => __( 'Disable', 'presentero-gift-cards-for-woocommerce' ), 'resend' => __( 'Send the email again', 'presentero-gift-cards-for-woocommerce' ), 'delete' => __( 'Delete permanently', 'presentero-gift-cards-for-woocommerce' ), ) ); -
apply_filters( 'presentero_gc_capability', 'manage_woocommerce' ); -
do_action( 'presentero_gc_card_actions', $card ); -
do_action( 'presentero_gc_card_edit_fields', $card ); -
do_action( 'presentero_gc_card_summary', $card ); -
do_action( 'presentero_gc_cards_page_actions' ); -
apply_filters( 'presentero_gc_email_recipient', $to, $card ); -
do_action( 'presentero_gc_form_after_amounts', $product ); -
do_action( 'presentero_gc_form_after_designs', $product ); -
do_action( 'presentero_gc_form_after_recipient', $product ); -
do_action( 'presentero_gc_form_before_button', $product ); -
apply_filters( 'presentero_gc_generated_code', $code, $prefix ); -
apply_filters( 'presentero_gc_line_recipients', array_fill( 0, $quantity, $default ), $item, $data ); -
apply_filters( 'presentero_gc_list_column', '', $column_name, $card ); -
apply_filters( 'presentero_gc_list_columns', array( 'cb' => '<input type="checkbox" />', 'code' => __( 'Code', 'presentero-gift-cards-for-woocommerce' ), 'balance' => __( 'Balance', 'presentero-gift-cards-for-woocommerce' ), 'status' => __( 'Status', 'presentero-gift-cards-for-woocommerce' ), 'recipient' => __( 'Recipient', 'presentero-gift-cards-for-woocommerce' ), 'source' => __( 'Source', 'presentero-gift-cards-for-woocommerce' ), 'exp... ); -
apply_filters( 'presentero_gc_max_quantity', 50, $product ); -
apply_filters( 'presentero_gc_occasions', array( 'general' => __( 'Any occasion', 'presentero-gift-cards-for-woocommerce' ), 'birthday' => __( 'Birthday', 'presentero-gift-cards-for-woocommerce' ), 'celebration' => __( 'Celebration', 'presentero-gift-cards-for-woocommerce' ), 'holiday' => __( 'Holidays', 'presentero-gift-cards-for-woocommerce' ), 'thank_you' => __( 'Thank you', 'presentero-gift-cards-for-woocommerce' ), 'wedding' => __... ); -
apply_filters( 'presentero_gc_product_tax_status', 'none', $this ); -
do_action( 'presentero_gc_send_card', $card->get_id(), false ); -
apply_filters( 'presentero_gc_shop_url', $url ? $url : home_url( '/' ) ); -
apply_filters( 'presentero_gc_sources', array( 'purchase' => __( 'Purchased', 'presentero-gift-cards-for-woocommerce' ), 'manual' => __( 'Issued by admin', 'presentero-gift-cards-for-woocommerce' ), ) ); -
apply_filters( 'presentero_gc_statuses', array( 'active' => __( 'Active', 'presentero-gift-cards-for-woocommerce' ), 'redeemed' => __( 'Used up', 'presentero-gift-cards-for-woocommerce' ), 'expired' => __( 'Expired', 'presentero-gift-cards-for-woocommerce' ), 'disabled' => __( 'Disabled', 'presentero-gift-cards-for-woocommerce' ), ) ); -
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_before_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
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', sprintf( __( 'Choose an amount for “%s”', 'presentero-gift-cards-for-woocommerce' ), $this->get_name() ), $this ); -
apply_filters( 'woocommerce_product_add_to_cart_text', __( 'Choose amount', 'presentero-gift-cards-for-woocommerce' ), $this ); -
apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_permalink(), $this );
Generated from Presentero'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: