• Resolved fredrikvestin

    (@fredrikvestin)


    I’m building a plugin that needs to do something (preferably once) after the user has clicked the button to save variant changes and the changes have been saved. The only solution I’ve found so far is the updated_post_meta hook but that runs several times during a save and I’d really prefer to only run this code once since it’s a little heavy. Is there any hook or any other way to do this?

Viewing 1 replies (of 1 total)
  • Hey @fredrikvestin,

    I’m building a plugin that needs to do something (preferably once) after the user has clicked the button to save variant changes and the changes have been saved. The only solution I’ve found so far is the updated_post_meta hook but that runs several times during a save and I’d really prefer to only run this code once since it’s a little heavy. Is there any hook or any other way to do this?

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Kind regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Action after variations has been saved’ is closed to new replies.