EU Withdrawal and Legal Guarantee Compliance 2.3.4 has 4 actions and 25 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 EU Withdrawal and Legal Guarantee Compliance fires an action
add_action( 'ayudawp_euw_after_form', function() {
// Your code runs here.
}, 10, 1 );
// Change a value EU Withdrawal and Legal Guarantee Compliance is about to use
add_filter( 'ayudawp_euw_admin_email_lines', function( $lines, $arg2 ) {
// Change $lines here.
return $lines;
}, 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
-
/** * Filter the lines of the admin notification email before they are joined. */ apply_filters( 'ayudawp_euw_admin_email_lines', $lines, array( 'post_id' => (int) $post_id, 'name' => $name, 'email' => $email, 'order' => $order, 'scope' => $scope, 'details' => $details, ) ); -
/** * Fires inside the withdrawal-form wrapper, right after the form. */ do_action( 'ayudawp_euw_after_form' ); -
/** * Fires after a withdrawal request status changes. */ do_action( 'ayudawp_euw_after_status_change', $post_id, $new_status, $comment ); -
/** * Fires after a withdrawal request has been processed. */ do_action( 'ayudawp_euw_after_submission', $post_id, array( 'name' => $data['name'], 'email' => $data['email'], 'order' => $data['order'], 'scope' => $data['scope'], 'details' => $data['details'], ) ); -
/** * Filter the order statuses considered eligible for the withdrawal flow. */ apply_filters( 'ayudawp_euw_allowed_statuses', $statuses, $order ); -
/** * Filters whether a checkout consent applies to the current cart. */ apply_filters( 'ayudawp_euw_consent_applies', $applies, $type ); -
/** * Filters the checkout hook where the consent checkboxes are rendered. */ apply_filters( 'ayudawp_euw_consent_hook', 'woocommerce_after_order_notes' ); -
/** * Filters the priority of the consent render on its checkout hook. */ apply_filters( 'ayudawp_euw_consent_hook_priority', 10, $hook ); -
/** * Filters whether a checkout consent is mandatory. */ apply_filters( 'ayudawp_euw_consent_is_required', $required, $type ); -
/** * Filter the list of WooCommerce email IDs where the notice is included. */ apply_filters( 'ayudawp_euw_email_ids', $email_ids ); -
/** * Fires inside the form, right before the submit button. */ do_action( 'ayudawp_euw_form_before_submit', $prefill, $lock ); -
/** * Filter whether the withdrawal form posts to admin-post.php. */ apply_filters( 'ayudawp_euw_form_via_admin_post', false ); -
/** * This filter is documented in includes/functions-woocommerce.php */ apply_filters( 'ayudawp_euw_grace_days', $option_grace ); -
/** * Filters the WooCommerce email IDs where the guarantee notice is included. */ apply_filters( 'ayudawp_euw_guarantee_email_ids', array_values( $ids ) ); -
/** * Filters the language used when the visitor's own has no official notice. */ apply_filters( 'ayudawp_euw_guarantee_fallback_lang', $fallback, $locale ); -
/** * Filters the media-library attachment used instead of the bundled notice. */ apply_filters( 'ayudawp_euw_guarantee_image_id', $id, $lang ); -
/** * Filters the map of languages with no official notice onto the one shown * instead. */ apply_filters( 'ayudawp_euw_guarantee_language_aliases', $aliases ); -
/** * Filters the markup of the harmonised guarantee notice. */ apply_filters( 'ayudawp_euw_guarantee_notice_html', $html, $lang, $mode ); -
/** * Filter the legal note shown on the form, the confirmation screen and the * acknowledgement email. */ apply_filters( 'ayudawp_euw_legal_conditions_text', $text ); -
/** * Filter the order-number meta keys checked when resolving a typed order * reference, in priority order (first match wins). */ apply_filters( 'ayudawp_euw_order_number_meta_keys', array( '_order_number', '_order_number_formatted', '_alg_wc_full_custom_order_number', '_alg_wc_custom_order_number', ), $order_ref ); -
/** * Filter the resolution result before built-in strategies run. */ apply_filters( 'ayudawp_euw_pre_resolve_wc_order', null, $order_ref ); -
/** * Filter the final resolution result. */ apply_filters( 'ayudawp_euw_resolve_wc_order', $order, $order_ref ); -
/** * Filter whether the withdrawal button and notice are offered for an order. */ apply_filters( 'ayudawp_euw_show_withdrawal', $show, $order, $check_deadline ); -
/** * Filter the validation result before it decides whether to proceed. */ apply_filters( 'ayudawp_euw_validation_result', $wc_validation, $data ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_object_id', $page_id, 'page', true ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'ayudawp_euw_allow_unverified_order', false, $order_ref, $email ); -
apply_filters( 'ayudawp_euw_show_consumer_check', $show_consumer, $prefill );
Generated from EU Withdrawal and Legal Guarantee Compliance'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: