{"id":15865172,"date":"2022-07-27T19:57:08","date_gmt":"2022-07-27T19:57:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/appropriate-hook\/"},"modified":"2022-07-27T19:57:08","modified_gmt":"2022-07-27T19:57:08","slug":"appropriate-hook","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/appropriate-hook\/","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 &#8216;woocommerce_pre_payment_complete&#8217; 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-15865172","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15865172","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\/15865172\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15865172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}