STM EU-B2B 1.9.2 has 37 actions and 55 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 STM EU-B2B fires an action
add_action( 'eurob2b_rules_changed', function() {
// Your code runs here.
}, 10, 1 );
// Change a value STM EU-B2B is about to use
add_filter( 'eurob2b_order_vat_id_meta_keys', 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
-
/** * This filter is documented in VatIdField::store_on_order(). */ apply_filters( 'eurob2b_order_vat_id_meta_keys', array( self::META_VAT_ID, '_billing_vat_id' ) ); -
/** * Collects personal data providers from all modules. */ apply_filters( 'eurob2b_personal_data_providers', array() ); -
/** * Fires when a rule is created, updated or deleted (caches must be dropped). */ do_action( 'eurob2b_rules_changed' ); -
/** * Fires on the rules form after the amount (position "action") and after the * scope (position "scope"): EU-B2B Pro adds the rows of its rule types and the * conditions there, built with RulesPage::row(). */ do_action( 'eurob2b_rules_form_rows', self::ROWS_ACTION, $rule, $amount_currency ); -
/** * Fires after the plugin was activated and the schema is current. */ do_action( 'eurob2b_activated' ); -
/** * Filters the resolved audience context (e.g. company membership). */ apply_filters( 'eurob2b_audience_context', $context, $user_id ); -
/** * Label of a stored value the core does not know, e.g. why acting as a member * ended (company accounts of EU-B2B Pro). Without a label the stored code is * shown. */ apply_filters( 'eurob2b_audit_value_label', $value, $action ); -
/** * Differences of the Cart and Checkout blocks listed on the EU-B2B settings * page (PLT-005), keyed by id. Each entry has "block" ("cart", "checkout", or * "any" for both) and "text" (plain text, escaped on output); other entries * are dropped. EU-B2B adds none of its own; EU-B2B Pro adds the differences of * its features. A module that adds a difference also adds it to the * compatibility table in docs/ar... */ apply_filters( 'eurob2b_blocks_differences', array() ); -
/** * Filters the unit price a cart line is expected to have at checkout. */ apply_filters( 'eurob2b_checkout_expected_unit_price', $unit, $item, $fresh, $resolved ); -
/** * Filters the country profiles (add or replace a profile, e.g. after a * professional review). */ apply_filters( 'eurob2b_country_profiles', $p ); -
/** * Fires after a customer's type, status or group changed. */ do_action( 'eurob2b_customer_assigned', $user_id, $type, $status, $group, $actor_id, $previous_status, $previous_type, $previous_group ); -
/** * Fires after a customer registered through EU-B2B. */ do_action( 'eurob2b_customer_registered', $user_id, $type, $status, $values ); -
/** * Fires on deactivation, e.g. to unschedule cron events. */ do_action( 'eurob2b_deactivated' ); -
/** * Whether groups may have their own currency. EU-B2B Pro returns true. */ apply_filters( 'eurob2b_group_currencies_enabled', false ); -
/** * Fires after a group was deleted and its members moved. */ do_action( 'eurob2b_group_deleted', $group, $target ); -
/** * Fires after a group was created or updated. */ do_action( 'eurob2b_group_saved', $saved ); -
/** * Lets captcha providers veto a quote request from a guest (QUO-015). */ apply_filters( 'eurob2b_guest_quote_captcha_valid', true, $post ); -
/** * Fires once every module has been booted. */ do_action( 'eurob2b_loaded', $this ); -
/** * Fires below the heading of the payment and shipping methods page, for * notices about the last save (query arguments `error` and `failed` of * eurob2b_methods_page_save). EU-B2B Pro shows which of its tables kept their * previous values (PLT-015). */ do_action( 'eurob2b_methods_page_notices' ); -
/** * Saves the further tables of the payment and shipping methods page after the * method matrices were saved (capability and nonce are checked). EU-B2B Pro * saves the payment terms, the shipping costs per group and the surcharges and * discounts here (PLT-015). A table that cannot be saved keeps its previous * values and adds an entry; the page then shows the messages. */ apply_filters( 'eurob2b_methods_page_save', array(), $post, $this->audiences() ); -
/** * Fires inside the form of the payment and shipping methods page, after the * method matrices and before the save button; the fields are saved through * eurob2b_methods_page_save. EU-B2B Pro adds the shipping costs per group, the * payment terms and the surcharges and discounts per payment method (PLT-015). */ do_action( 'eurob2b_methods_page_sections', $this ); -
/** * Fires after database migrations ran. */ do_action( 'eurob2b_migrated', $applied ); -
/** * Sources the importer can read from (MIG-001). */ apply_filters( 'eurob2b_migration_sources', array( $c->get( B2BKingSource::class ), new WholesaleSuiteSource() ) ); -
/** * Filters the rows shown in the EU-B2B box on the order screen. */ apply_filters( 'eurob2b_order_attribute_rows', $rows, $order ); -
/** * Colours of rows in the EU-B2B box (PLT-017): label => tone of `StatusLabel` * (ok, warn, bad, info). A coloured row shows its text as a label, e.g. a * missing proof of supply in red. */ apply_filters( 'eurob2b_order_attribute_tones', array(), $rows, $order ); -
/** * Filters the order attributes recorded at purchase. */ apply_filters( 'eurob2b_order_attributes', $attributes, $audience, $order ); -
/** * Lines of the overview page. Each line: count (int), title, text (plain * text), url, action (button label) and capability (needed to see the line). * Lines with a count of zero are hidden. */ apply_filters( 'eurob2b_overview_items', array() ); -
/** * Filters the message shown to pending customers. */ apply_filters( 'eurob2b_pending_login_message', __( 'Your account is waiting for approval. We will e-mail you as soon as it is activated.', 'stm-eu-b2b' ) ); -
/** * Filters the adjustment providers (discount and markup rules). */ apply_filters( 'eurob2b_price_adjustment_providers', array() ); -
/** * Filters the price providers (customer prices, company prices, fixed-price * rules, ...). */ apply_filters( 'eurob2b_price_providers', $this->core_providers ); -
/** * Filters the tier providers (TierProviderInterface) consulted between * replacement and adjustments. */ apply_filters( 'eurob2b_price_tier_providers', array() ); -
/** * Filters the quantity the tier providers look up their tiers with (EU-B2B * Pro: the tier quantity basis, PRC-015, counts all variations of a product in * the cart together). */ apply_filters( 'eurob2b_price_tier_quantity', $quantity, $product ); -
/** * Filters whether EU-B2B pricing applies to the current request. */ apply_filters( 'eurob2b_pricing_applies', $default ); -
/** * Filters the admin-ajax.php actions that count as storefront requests for * pricing. */ apply_filters( 'eurob2b_pricing_storefront_ajax_actions', $actions ); -
/** * Filters the first sentences of the section on business customer accounts in * the suggested privacy policy text. EU-B2B Pro adds the products agreed for a * group (visibility). */ apply_filters( 'eurob2b_privacy_policy_account_text', __( 'When you register as a business customer, we store the registration type you chose, the information you enter in the registration form and the time you accepted our terms. We use this information to review your application, to assign you to a customer group and to show you the prices and payment methods agreed for that group.', 'stm-eu-b2b' ) ); -
/** * Filters the note to the shop owner at the start of the suggested privacy * policy text (plain text). EU-B2B Pro names its checking services in it * (PLT-015). */ apply_filters( 'eurob2b_privacy_policy_intro', __( 'STM EU-B2B stores the data described below and, only if you enable VAT ID validation, sends VAT IDs to the European Commission (VIES). Remove the sections for features you do not use and add the legal basis of each processing after reviewing it with your data protection advisor. The retention periods follow your current settings.', 'stm-eu-b2b' ) ); -
/** * Sections of the suggested privacy policy text by position (PRV-007): 10 * business customer accounts, 20 VAT identification number, 70 protection * against abuse. EU-B2B Pro adds 30 company accounts, 40 quote requests and * offers, 50 messages, 60 purchase lists, 80 e-invoicing details, 90 Peppol * Directory, 100 confirmation of receipt, 110 export evidence and 120 purchase * order documents. Empty secti... */ apply_filters( 'eurob2b_privacy_policy_sections', $sections ); -
/** * Filters the sentences that checking services besides VIES add to the section * on the VAT identification number, after the one on VIES (EU-B2B Pro: the * BZSt, the Swiss UID register and the Brønnøysund register while they are * on, PLT-015). Plain text. */ apply_filters( 'eurob2b_privacy_policy_vat_services', array() ); -
/** * Adds or changes activities of the record of processing activities (PRV-010). */ apply_filters( 'eurob2b_processing_activities', $this->own() ); -
/** * Filters the technical and organisational measures of the record (Art. * 30(1)(g) GDPR), plain text keyed by topic: access, input, abuse, retention, * connections, telemetry. EU-B2B Pro adds `companies` after `input` and names * the Peppol Directory lookup in `connections` (PLT-015). */ apply_filters( 'eurob2b_processing_record_measures', array( 'access' => __( 'Admin screens, exports and the REST API require role-based capabilities; forms and downloads are protected against cross-site request forgery (nonces).', 'stm-eu-b2b' ), 'input' => __( 'Input is validated on the server, output is escaped, and database queries use prepared statements.', 'stm-eu-b2b' ), 'abuse' => __( 'The abuse protection stores IP addresses only as salte... ); -
/** * Filters the sentence on special categories of personal data (Art. 9 and 10 * GDPR) in the record. EU-B2B Pro adds its quote request forms. */ apply_filters( 'eurob2b_processing_record_special_categories', __( 'EU-B2B itself processes no special categories of personal data and no data on criminal convictions. Fields you add to the registration form can change this.', 'stm-eu-b2b' ) ); -
/** * Filters the sentences on transfers to third countries (Art. 30(1)(e) GDPR) * in the record, plain text joined by spaces. The first is the core's * statement; EU-B2B Pro replaces it while the Swiss UID check is on and adds * one on Norway while the Brønnøysund check is on * (docs/privacy-and-data-flows.md D-03). */ apply_filters( 'eurob2b_processing_record_transfers', array( __( 'EU-B2B transfers no personal data to third countries or international organisations. Add the transfers of your hosting, e-mail delivery and other services.', 'stm-eu-b2b' ) ) ); -
/** * Filters the lists of the activity EB-03 (VAT ID checks and tax evidence) of * the record. EU-B2B Pro appends its checking services (BZSt, UID register, * Brønnøysund), the proof of intra-Community supply and the export evidence, * and sets `in_use` while one of them is on (PLT-015). Add to the end of each * list; lists hold plain text. */ apply_filters( 'eurob2b_processing_record_vat_parts', $base ); -
/** * Fields of the section "prices" of the EU-B2B product tab: recommended retail * price, group prices, customer prices. Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_prices' ); -
/** * Fields of the section "quantities" of the EU-B2B product tab: minimum, * maximum and step quantities. Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_quantities' ); -
/** * Fields of the section "stock" of the EU-B2B product tab: the separate stock * for business customers. Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_stock' ); -
/** * Filters the parts of the summary next to a section title of the EU-B2B * product tab, e.g. "2 of 4 groups with their own price". Each module adds * plain-text parts for its own fields of that section and only for users who * may see those fields. */ apply_filters( 'eurob2b_product_panel_summary', array(), $key, $product ); -
/** * Fields of the section "tax" of the EU-B2B product tab: the supply type * (goods or service) for the tax decision. Print them as `options_group` * blocks. */ do_action( 'eurob2b_product_panel_tax' ); -
/** * Fields of the section "tiers" of the EU-B2B product tab: quantity tiers and * the tier table switch. Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_tiers' ); -
/** * Fields of the section "variations" of the EU-B2B product tab: the variations * table (variable products). Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_variations' ); -
/** * Fields of the section "visibility" of the EU-B2B product tab: visibility per * audience. Print them as `options_group` blocks. */ do_action( 'eurob2b_product_panel_visibility' ); -
/** * Further forms whose requests are limited per connection, as parts of a * sentence ("the order form"); EU-B2B Pro adds quote requests from guests and * the order form. */ apply_filters( 'eurob2b_protected_forms', $forms ); -
/** * Allows add-ons to register additional modules before boot. */ do_action( 'eurob2b_register_modules', $this->modules, $this->container ); -
/** * Fires after a registration was approved. */ do_action( 'eurob2b_registration_approved', $user_id, $actor_id ); -
/** * Lets captcha providers veto a registration. */ apply_filters( 'eurob2b_registration_captcha_valid', true, $post ); -
/** * Fires when the action `eurob2b_register_business_customer` could not * register the user. */ do_action( 'eurob2b_registration_external_failed', (int) $user_id, $result ); -
/** * Fires after a registration was rejected. */ do_action( 'eurob2b_registration_rejected', $user_id, $note, $actor_id ); -
/** * Filters whether an enabled registration type is offered on the registration * forms. */ apply_filters( 'eurob2b_registration_type_offered', true, $type ); -
/** * Filters the message shown to rejected customers. */ apply_filters( 'eurob2b_rejected_login_message', __( 'This account has not been activated. Please contact us if you think this is a mistake.', 'stm-eu-b2b' ) ); -
/** * Filters the resolved price of a product for an audience. */ apply_filters( 'eurob2b_resolved_price', $result, $product, $audience, $quantity ); -
/** * Collects the retention tasks of all modules. */ apply_filters( 'eurob2b_retention_tasks', array() ); -
/** * Filters the rule types offered in the admin (id => label). Modules that add * a type also provide its evaluation through the RuleEvaluator. EU-B2B Pro * adds its types with priority 5, right after the discount. */ apply_filters( 'eurob2b_rule_types', $types ); -
/** * Filters the type-specific payload of a rule built from the rules form, the * import or the REST API (EU-B2B Pro fills in its rule types). Throw a * RuntimeException with a message for the admin to refuse the values. */ apply_filters( 'eurob2b_rules_action_from_request', $action, $type, $post ); -
/** * Filters the modes of the amount of a discount on the rules form (mode => * label; EU-B2B Pro adds the fixed amount in the rule's currency). */ apply_filters( 'eurob2b_rules_amount_modes', $modes, $amount_currency ); -
/** * Filters whether a module handles the rule types, the fixed-amount mode, the * conditions and the discount line in the cart (EU-B2B Pro returns true; * return true only from the module that applies them and adds their form * parts). It switches no behaviour on by itself. Without it, rules that use * them stay stored but never apply, and the rules page lists them without * editing them. */ apply_filters( 'eurob2b_rules_extended', false ); -
/** * Filters the rules that apply to a product. */ apply_filters( 'eurob2b_rules_for', $matched, $type, $product, $audience, $quantity ); -
/** * Filters the explanatory texts of the rules page: "list" above the table of * rules, "amount" under the amount of a discount (EU-B2B Pro describes its * rule types there). */ apply_filters( 'eurob2b_rules_page_descriptions', $texts ); -
/** * Lets modules add sections and fields. */ do_action( 'eurob2b_settings_schema', $schema ); -
/** * Parts of the settings file that belong to modules (PLT-012, PLT-015). */ apply_filters( 'eurob2b_settings_transfer_parts', array() ); -
/** * Prints further sections of the transfer page, e.g. the import from another * plugin (MIG-001). */ do_action( 'eurob2b_settings_transfer_sections' ); -
/** * Warnings about values of a settings file that only mean something in the * shop the file comes from (e.g. page numbers), shown before and after an * import (PLT-012). */ apply_filters( 'eurob2b_settings_transfer_warnings', array(), $data ); -
/** * Fires after the settings were saved. */ do_action( 'eurob2b_settings_updated', $clean ); -
/** * Filters the exemption text written to the order for invoices. */ apply_filters( 'eurob2b_tax_exemption_text', $text, $decision ); -
/** * A staff member confirmed the review of an order whose tax treatment EU-B2B * flagged (the audit log records it). */ do_action( 'eurob2b_tax_review_confirmed', $order, $actor_id ); -
/** * Filters the invoice text of a decision a special case made, before the * exemption texts (EU-B2B Pro: the supply to a special territory outside the * EU VAT area, TAX-024). An empty text leaves the decision to the core, which * writes a text only for exempt and mixed orders. */ apply_filters( 'eurob2b_tax_special_invoice_text', '', $decision ); -
/** * Filters the special cases of the tax treatment decision, asked in this order * before the standard rules (`Treatment\SpecialTreatment`; EU-B2B Pro: the * special territories, TAX-024, and Northern Ireland, TAX-034). Without them * those addresses count as their country. */ apply_filters( 'eurob2b_tax_special_treatments', array() ); -
/** * Filters the facts of a tax treatment decision for a cart or an order (EU-B2B * Pro switches on the special territories and Northern Ireland by their * settings, TAX-024 and TAX-034, see `TreatmentInput::with_special_cases()`). * The special cases themselves come through `eurob2b_tax_special_treatments`. */ apply_filters( 'eurob2b_tax_treatment_input', $input ); -
/** * Fires after a manual decision on a VAT validation. */ do_action( 'eurob2b_vat_decided', $record, $actor_id, null !== $before ? $before->status->value : '' ); -
/** * Filters whether checks ask for a qualified confirmation with the company * data now (EU-B2B Pro: the BZSt in its qualified mode). Then a stored BZSt * answer that compared other company data is not reused, and the service is * asked again. */ apply_filters( 'eurob2b_vat_qualified_confirmation', false ); -
/** * Filters the company data of a registered customer for a qualified * confirmation (EU-B2B Pro: the billing address of the company that binds the * customer, CMP-012). Null means no company data (the confirmation stays * simple). */ apply_filters( 'eurob2b_vat_trader_details', $trader, $user_id ); -
/** * Fires after a validation reached a final service result. */ do_action( 'eurob2b_vat_validated', $record ); -
/** * Filters whether a checking service is switched on: VIES, or a service of an * add-on (EU-B2B Pro: the BZSt, the Swiss UID register and the Brønnøysund * register, each by its setting). Off, numbers are only checked for their * format. */ apply_filters( 'eurob2b_vat_validation_enabled', $this->vies_enabled() ); -
/** * Fires at the end of the VAT IDs page (reports add their forms here). The * core adds the country profiles at priority 20; EU-B2B Pro adds the OSS * monitor (4), the recapitulative statement (5), the export of exempt sales * (10) and the special territories (20, after the profiles). */ do_action( 'eurob2b_vat_validations_page_end' ); -
/** * Filters the VAT ID validators (BZSt, Swiss UID, Brønnøysund add-ons). */ apply_filters( 'eurob2b_vat_validators', $this->core_validators ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( 'woocommerce_register_form' ); -
do_action( 'woocommerce_register_form_end' ); -
do_action( 'woocommerce_register_form_start' ); -
do_action( 'woocommerce_register_form_tag' );
Generated from STM EU-B2B'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: