APG Withdrawal for WooCommerce 0.9.0 has 4 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 APG Withdrawal for WooCommerce fires an action
add_action( 'apg_withdrawal_request_registered', function( $post_id, $data ) {
// Your code runs here.
}, 10, 2 );
// Change a value APG Withdrawal for WooCommerce is about to use
add_filter( 'apg_withdrawal_account_title', function( $_ ) {
// Change $_ here.
return $_;
}, 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 heading of the Withdrawal tab in My Account. */ apply_filters( 'apg_withdrawal_account_title', __( 'Withdrawal', 'apg-withdrawal-for-woocommerce' ) ); -
/** * Filters the withdrawal types that count as excluded for this purpose. */ apply_filters( 'apg_withdrawal_excluding_types', array( 'excluded' ), $order ); -
/** * Filters the payment-gateway description used by the refund panel. Useful for * gateways whose id does not reveal the underlying rail. */ apply_filters( 'apg_withdrawal_gateway_info', $info, $order ); -
/** * Filters whether the current withdrawal submission requires e-mail * verification before being registered. */ apply_filters( 'apg_withdrawal_guest_verification_required', $enabled && ! is_user_logged_in() ); -
/** * Filters the effective jurisdiction. Useful for multi-store setups that * resolve the jurisdiction from the customer's country instead of a single * store-wide setting. */ apply_filters( 'apg_withdrawal_jurisdiction', $jurisdiction ); -
/** * Filters whether a jurisdiction-specific feature is required. */ apply_filters( 'apg_withdrawal_jurisdiction_supports', $supported, $feature, $jurisdiction ); -
/** * Filters the list of normalised terms whose presence in the label triggers * the Article 11 bis ambiguity warning. Useful to add more bad terms in other * languages or to relax false positives. */ apply_filters( 'apg_withdrawal_label_ambiguous_terms', array( 'contactanos', 'contacto', 'contact us', 'contact', 'consultar', 'consulta', 'consult', 'gestionar', 'gestiona', 'manage', 'volver', 'back', 'ayuda', 'help', 'ver pedido', 'view order' ) ); -
/** * Filters the list of normalised terms that make a withdrawal label * unambiguous for the purposes of Article 11 bis. If the label contains any of * these substrings the ambiguity check returns false (label is OK). */ apply_filters( 'apg_withdrawal_label_unambiguous_terms', array( 'desistir', 'desistimiento', 'withdraw', 'withdrawal', 'retract', 'revocacion', 'revocation' ) ); -
/** * Filters the refund a withdrawal request implies before it is shown to the * merchant or handed to WooCommerce. Use it to add fees, exclude shipping or * apply a deduction for diminished value of the returned goods. */ apply_filters( 'apg_withdrawal_refund_plan', $plan, $post_id ); -
/** * Fires once a withdrawal declaration has been fully registered: metadata * written, order note added and notifications dispatched. */ do_action( 'apg_withdrawal_request_registered', $post_id, $data ); -
/** * Filters the REST representation of a withdrawal request. */ apply_filters( 'apg_withdrawal_rest_request', $payload, $post ); -
/** * Filters whether the withdrawal link goes into this order's email. */ apply_filters( 'apg_withdrawal_show_order_link', ! apg_withdrawal_order_is_fully_excluded( $order ), $order ); -
/** * Filters the proxy headers the site trusts to carry the real client IP. */ apply_filters( 'apg_withdrawal_trusted_proxy_headers', array() ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'apg_withdrawal_client_ip', $ip ); -
apply_filters( 'apg_withdrawal_rate_limit_max', 5, $bucket ); -
apply_filters( 'apg_withdrawal_rate_limit_window', 10 * MINUTE_IN_SECONDS, $bucket ); -
apply_filters( 'apg_withdrawal_verification_ttl', DAY_IN_SECONDS ); -
do_action( 'wpml_register_single_string', $domain, $name, $value ); -
apply_filters( 'wpml_translate_single_string', (string) $value, 'apg-withdrawal-for-woocommerce', (string) $name );
Generated from APG Withdrawal 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: