I'm using Woocommerce Subscriptions and currently the below action hook fires when you update your address on your Account Page > Edit Shipping (my-account/edit-address/shipping/) - HOWEVER it does not fire when you update your address on the Account > View subscription page > Edit Shipping (/my-account/edit-address/shipping/?subscription=62400).
function kidstir_email_customer_address( $user_id ) {
// do stuff
}
add_action( 'woocommerce_customer_save_address','kidstir_email_customer_address', 20 );
I've been looking for hours, and can't figure out why it's not firing, or how to get a notification that a subscription address has changed. Has anyone else had this issue?
The version of WooCommerce Subscriptions (2.0.9) does not call the woocommerce_customer_save_address hook in file class-wc-subscriptions-addresses.php
To solve my problem I edited this file (I know editing core is not advisable) to call the hook (doaction etc) on line 137.