I'm hooking into "toolset_association_created", but it seems to be triggered at a time before the post is ready to use update_post_meta on.
For eg, if I have an association between Woo Products and my custom post type Event, and when editing an Event, I click "Add new Product", then in the "toolset_association_created" handler, I can't use update_post_meta on the newly created Woo Product.
Is there a way around this? Or is there a filter so I can hide the "Add new Product" button in the admin meta box and only leave the "Connect existing Product" button?
My issue is resolved now. Thank you!
Were you able to find a way to hide the "ADD NEW" button? You asked the question, then said it was resolved. But it would help me to know how to hide the "ADD NEW" option. My client often gets confused and selects the wrong option here.