当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Update post meta before sending wp_mail

问题描述:

I have some custom fields that update using update_post_meta(). I also use a wp_mail function to send out an email on publish that is meant to include all the post meta that the user has just entered. However, after hours of trying to figure out why the custom fields where never included in the mail template, it turns out if i hit update, the mail goes out again with all the data. So im guessing that wp_mail() is firing before update_post_meta().

Any ideas.

分享给朋友:
您可能感兴趣的文章:
随机阅读: