Willie Lee
Willie Lee

Reputation: 33

WordPress save_post_{custom_post_type} hook after all post meta is saved

Literally the save_post wp hook get triggered before the post meta data is saved. That's why I am facing an issue. Anyone can help me please?

Upvotes: 3

Views: 624

Answers (1)

tmpacifitech
tmpacifitech

Reputation: 609

In the hook function, you can simply get the updated meta value like below. $_REQUEST[$meta_key]

You can update the post meta right away if you want.

Upvotes: 2

Related Questions