Bitron Right of Withdrawal 1.8.1 has 3 actions and 18 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 Bitron Right of Withdrawal fires an action
add_action( 'bitrow_manual_declaration_received', function( $record, $record2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Bitron Right of Withdrawal is about to use
add_filter( 'bitrow_client_ip', function( $remote_addr ) {
// Change $remote_addr here.
return $remote_addr;
}, 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
-
/** * Filters the client IP used for the diagnostics rate-limit bucket. */ apply_filters( 'bitrow_client_ip', $remote_addr ); -
/** * Filter the customer confirmation email body after token substitution. */ apply_filters( 'bitrow_customer_email_body', $body, $record, $order ); -
/** * Filters whether the plugin writes operational diagnostics to the WooCommerce * log. Defaults to the admin opt-in setting (off unless the shop owner enabled * it); a filter can still force it on/off in code. */ apply_filters( 'bitrow_diagnostics_enabled', $opt_in ); -
/** * Filter: WooCommerce email ids that should carry the withdrawal CTA. */ apply_filters( 'bitrow_email_cta_email_ids', $allowed ); -
/** * Filters the duplicate-submission idempotency window (seconds). */ apply_filters( 'bitrow_idempotency_window', 30 * MINUTE_IN_SECONDS ); -
/** * Fires when an UNVERIFIED, free-text withdrawal declaration (no linked order) * has been stored. Deliberately DISTINCT from bitrow_withdrawal_received: the * Pro refund / automation / rules / webhook pipeline keys on that hook and * needs a WC_Order, so an order-less manual declaration must never enter it. * The confirmation + admin notification emails listen here instead. */ do_action( 'bitrow_manual_declaration_received', $record['id'], $record['uid'] ); -
/** * Filter whether an order line item is excluded from withdrawal. */ apply_filters( 'bitrow_order_item_excluded', $excluded, $item ); -
/** * Extra per-record action block, rendered after the close/reopen toggle. The * Pro package returns its status-transition form here; the free package leaves * it empty. */ apply_filters( 'bitrow_order_metabox_record_actions', '', $record, $order, $return_url ); -
/** * Filters the plugin-side OTP rate limit for one endpoint. */ apply_filters( 'bitrow_otp_rate_limit', $defaults, $action ); -
/** * Filters the completed-submission rate limit. */ apply_filters( 'bitrow_submit_rate_limit', array( 'limit' => 5, 'window' => 10 * MINUTE_IN_SECONDS, ) ); -
/** * Filter the effective waiver mode for a cart. */ apply_filters( 'bitrow_waiver_effective_mode', $mode, $cart ); -
/** * Filter: allow override of the withdrawal window length (in days). */ apply_filters( 'bitrow_window_days', $days ); -
/** * Fires when a withdrawal record has been stored. */ do_action( 'bitrow_withdrawal_received', $record['id'], $record['uid'], $order ); -
apply_filters( 'bitrow_order_metabox_status_label', $this->default_status_label( $status ), $status ); -
apply_filters( 'wpml_translate_single_string', $value, self::CONTEXT, $name, $lang ); -
apply_filters( 'bitrow_step1_rate_limit', array( 'limit' => 10, 'window' => 15 * MINUTE_IN_SECONDS, ) ); -
apply_filters( 'woocommerce_checkout_fields', array() ); -
apply_filters( 'wpml_active_languages', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_object_id', $id, 'page', true ); -
do_action( 'wpml_register_single_string', self::CONTEXT, $name, $value );
Generated from Bitron Right of Withdrawal'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: