I've added a custom tab to my WooCommerce 'My Account' and need to fire another function when the options are saved. How can I hook into that update process?

I found add_action( 'woocommerce_settings_save_<id>', $array ); but can't figure out how to pass that ID variable.

Alternatively, is there a non-woocommerce specific hook that I can use? Something attached to saving user meta perhaps?

  • Are you talking about "WooCommerce My Account" from admin side? – Tanmay Patel Feb 27 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.