admin管理员组文章数量:1122846
I made a survey application. The survey works successfully when I email it to 4,000 users. However, when I send it via SMS, there is an error in the numbers.
The reason is that when I send an e-mail, not all users enter data at the same time. However, when I send it via SMS, there are many entries at the same time, I have to read the postmeta, update it without changing it, and then move on to the next record. What do you suggest, some of the code is below. Thank you very much to everyone who is interested.
Option A;
function uD_Option_A_Increase(){
//Read
$uD_Option_A= get_post_meta( $uD_post_ID, 'uD_Option_A_Value' );
//Increase
$uD_Option_A_Plus= $uD_Option_A + 1;
//Update
update_post_meta( $uD_post_ID, 'uD_Option_A_Value', $uD_Option_A_Plus );
}
本文标签: post metaI read the postmeta and update it without changing itthen move on to the next record
版权声明:本文标题:post meta - I read the postmeta and update it without changing it, then move on to the next record 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305098a1932470.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论