mardi 17 mai 2016

Hook for Woocommerce Subscription address change

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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire