admin管理员组文章数量:1122846
I am facing a weird issue here and can't wrap my head around it. I am using the woocommerce_checkout_update_order_meta
action to add custom data to an order. In the callback function I use update_post_meta
with the order ID to add the required data.
However, the data is never saved. Here's what I know so far:
- I can log the POST data and the data I want is there.
- the order ID is correct and exists
- using
error_log
I can see theupdate_post_meta
returns an ID, but that ID does not exist in the database - I am using WP 6.5.3 and WC 8.9.1
- I see nothing is the PHP error logs
Does anyone have any input on this?
本文标签: actionsupdatepostmeta returns IDbut nothing in the database
版权声明:本文标题:actions - update_post_meta returns ID, but nothing in the database 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305478a1932604.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论