问题描述:

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.

相关阅读:
Top