Gyta Buyback 1.6.7 has 16 actions and 18 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 Gyta Buyback fires an action
add_action( 'wcpti_kit_sent', function( $order ) {
// Your code runs here.
}, 10, 1 );
// Change a value Gyta Buyback is about to use
add_filter( 'wcpti_net_max_items', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Cap how many devices one order can trade in. */ apply_filters( 'wcpti_net_max_items', 5 ); -
/** * Last-gate veto before a customer approval is accepted. Quote expiry * (includes/quote_expiry.php) hooks this to refuse approvals on lapsed offers; * the callback is responsible for messaging (wc_add_notice / admin email). */ apply_filters( 'wcpti_customer_can_approve', true, $order_obj ); -
/** * Support escape hatch: force the raw REST fallback even when the SDK is * present — `add_filter( 'wcpti_easypost_force_legacy', '__return_true' )`. * Useful when a host's cURL/OpenSSL stack fights the SDK, and as the seam our * test harness uses to intercept label traffic. */ apply_filters( 'wcpti_easypost_force_legacy', false ); -
/** * Filter the EasyPost SDK request timeout, in seconds. */ apply_filters( 'wcpti_easypost_timeout', 60.0 ); -
/** * Fires after the kit ships and the inbound label exists (SMS/comms seam). */ do_action( 'wcpti_kit_sent', $order ); -
/** * Fires after a label is successfully purchased (comms/SMS seam). */ do_action( 'wcpti_label_created', wc_get_order( $order_id ), $role ); -
/** * Filter the realized-margin lookback window. */ apply_filters( 'wcpti_margin_window_days', 365 ); -
/** * Fires after a trade-in credit entry is applied (comms/abandoned-quote seam). */ do_action( 'wcpti_net_credit_applied', $items ); -
/** * The customer declined the offer (initial or re-quoted). Return-label * automation (includes/return-labels.php) hooks this to mail the device back. */ do_action( 'wcpti_offer_declined', $order_obj ); -
/** * Filter the payout amount for an order (order currency). */ apply_filters( 'wcpti_payout_amount', (float) $order->get_total(), $order ); -
/** * Fires when a payout reaches a FAILED state. */ do_action( 'wcpti_payout_failed', $order, $error ); -
/** * Filter the payout provider resolved for an order. */ apply_filters( 'wcpti_payout_provider', $provider, $order ); -
/** * Fires when a payout reaches a confirmed SUCCESS state. */ do_action( 'wcpti_payout_succeeded', $order ); -
/** * Filter the carriers considered QR-capable. */ apply_filters( 'wcpti_qr_capable_carriers', array( 'USPS', 'CanadaPost', 'Evri', 'UPS' ) ); -
/** * Filter the ordered list of charge strategies for the difference order. */ apply_filters( 'wcpti_reconcile_charge_strategies', array('wcpti_reconcile_charge_via_token') ); -
/** * A revised offer was sent. Quote expiry re-locks the price window here. */ do_action( 'wcpti_revised_offer_sent', $order ); -
/** * Provider seam — return a truthy handled-result to replace Twilio. */ apply_filters( 'wcpti_send_sms_provider', null, $phone, $message, $order ); -
/** * A tracker event was routed to an order shipment. Kits/comms hook this * (reminder scheduling, SMS) instead of the webhook knowing about them. */ do_action( 'wcpti_shipment_tracker_event', $order, $role, $tracking_status ); -
/** * Filter the SMS text before sending. */ apply_filters( 'wcpti_sms_message', $message, $event, $order ); -
/** * Filter the raw, stored store mode before premium gating is applied. */ apply_filters( 'wcpti_store_mode', get_option( 'wcpti_settings_store_mode', 'buyback' ) ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'woocommerce_cheque_icon', '' ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( "{self::PREFIX}endpoint", self::ENDPOINT ); -
apply_filters( 'wcpti_checkout_easypost_timeout', 15.0 ); -
do_action( 'wcpti_fs_loaded' ); -
apply_filters( 'wcpti_settings_tab_settings', $settings ); -
apply_filters( 'woocommerce_paypal_icon', '' ); -
do_action( "woocommerce_wcpti_{$this->id}_form_end", $this->id ); -
do_action( "woocommerce_wcpti_{$this->id}_form_start", $this->id );
Generated from Gyta Buyback'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: