WordPress action hook

woocommerce_before_edit_account_address_form

Defined by WooCommerce and fired by 5 plugins in total, running on 7M+ sites between them.

How to use woocommerce_before_edit_account_address_form

It's an action: your callback runs at that point. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_before_edit_account_address_form', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

5 plugins that fire woocommerce_before_edit_account_address_form

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_before_edit_account_address_form' ) templates/myaccount/form-edit-address.php:22
  2. Youzify icon Youzify5,000+ installs do_action( 'woocommerce_before_edit_account_address_form' ) includes/public/templates/members/single/woocommerce/myaccount/form-edit-address.php:22
  3. StoreBuild icon StoreBuild400+ installs do_action( 'woocommerce_before_edit_account_address_form' ) public/woocommerce/myaccount/form-edit-address.php:23
  4. Postcodes4U Address Finder icon Postcodes4U Address Finder300+ installs do_action( 'woocommerce_before_edit_account_address_form' ) woocommerce/myaccount/form-edit-address.php:39
  5. Fr Address Book For Woocommerce icon Fr Address Book For Woocommerce100+ installs do_action( 'woocommerce_before_edit_account_address_form' ) templates/add-address.php:20

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.