Address Book for WooCommerce 3.1.1 has 6 actions and 15 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 Address Book for WooCommerce fires an action
add_action( 'woocommerce_after_save_address_validation', function( $arg1, $address_type, $address, $customer ) {
// Your code runs here.
}, 10, 4 );
// Change a value Address Book for WooCommerce is about to use
add_filter( 'woocommerce_my_account_my_address_formatted_address', function( $woo_address_book_fields, $arg2, $woo_address_book_key ) {
// Change $woo_address_book_fields here.
return $woo_address_book_fields;
}, 10, 3 );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
-
woocommerce_my_account_my_address_formatted_address
filter Used by 3 plugins → Copy link Customise this hook/** * Filter the billing address before formatting. */ apply_filters( 'woocommerce_my_account_my_address_formatted_address', $woo_address_book_fields, $woo_address_book_customer->get_id(), $woo_address_book_key ); -
/** * Modify the address book header. */ apply_filters( 'crosspeak_address_book_address_header', $header, $address ); -
/** * Modify the address book select label. */ apply_filters( 'wc_address_book_address_select_label', $label, $address ); -
/** * Modify the address book addresses. */ apply_filters( 'wc_address_book_addresses', $addresses, $this->customer, $this->type, $this ); -
/** * Filter the current customer. */ apply_filters( 'wc_address_book_current_customer', new \WC_Customer( $user_id ), $context ); -
/** * Filter the current user id. Defaults to the current user ID. */ apply_filters( 'wc_address_book_current_user_id', get_current_user_id(), $context ); -
/** * Filter to override if the add new address button should be shown. */ apply_filters( "wc_address_book_show_{$type}_address_button", true ); -
/** * Filter the billing address book description. Output should be escaped before * returning. */ apply_filters( 'woo_address_book_billing_description', $woo_address_book_billing_description, $woo_address_book_save_limit, $woo_address_book_count_section ); -
/** * Filters whether we are under the address limit. */ apply_filters( 'woo_address_book_is_under_limit', null, $this->type ); -
/** * Filters the number of saved addresses. */ apply_filters( 'woo_address_book_limit', $save_limit, $this->type ); -
/** * Filter the shipping address book description. Output should be escaped * before returning. */ apply_filters( 'woo_address_book_shipping_description', $woo_address_book_shipping_description, $woo_address_book_save_limit, $woo_address_book_count_section ); -
woocommerce_after_save_address_validation
action Used by 6 plugins → Copy link Customise this hook/** * Hook: woocommerce_after_save_address_validation. */ do_action( 'woocommerce_after_save_address_validation', $customer->get_id(), $address_type, $address, $customer ); -
/** * Action for after creating an address. */ do_action( 'woocommerce_api_create_address_book_address', $customer->get_id(), $data, $type, $key ); -
/** * Filter address data for the API request. */ apply_filters( 'woocommerce_api_create_address_book_data', $data, $type, $user_id ); -
/** * Action for after deleting an address. */ do_action( 'woocommerce_api_delete_address_book_address', $customer->get_id(), $type, $address_id ); -
/** * Action for after editing an address. */ do_action( 'woocommerce_api_edit_address_book_address', $customer->get_id(), $data, $type, $address_id ); -
/** * Filter address data for the API request. */ apply_filters( 'woocommerce_api_edit_address_book_data', $data, $type, $user_id ); -
/** * Provides an opportunity to modify the customer ID associated with the * current checkout process. */ apply_filters( 'woocommerce_checkout_customer_id', current_user_id( 'woocommerce_checkout_update_customer_data' ) ); -
/** * Action hook to adjust customer before save. */ do_action( 'woocommerce_checkout_update_customer', $customer, $data ); -
/** * Hook: woocommerce_customer_save_address. */ do_action( 'woocommerce_customer_save_address', $customer->get_id(), $address_type, $address, $customer ); -
/** * Hook to allow modification of value. */ apply_filters( "woocommerce_process_myaccount_field_{$key}", $value );
Generated from Address Book 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: