{"id":15872502,"date":"2022-07-30T03:20:29","date_gmt":"2022-07-30T03:20:29","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/appropriate-hook-2\/"},"modified":"2022-07-30T03:20:29","modified_gmt":"2022-07-30T03:20:29","slug":"appropriate-hook-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/appropriate-hook-2\/","title":{"rendered":"Appropriate Hook"},"content":{"rendered":"<p>I have a script that adds a generated profile ID to the end of a product name if that product is part of an order.<\/p>\n<p>This script fires on the \u2018woocommerce_pre_payment_complete\u2019 hook. This works great except for one thing, it does not change the product name before the New Order email is sent to the store manager. I am sure it is because I am using a hook after the new order email is created.<\/p>\n<p>Does anyone have a better suggestion on the appropriate hook to use to accomplish this?<\/p>\n","protected":false},"template":"","class_list":["post-15872502","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15872502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15872502\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15872502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}