Title: lkhulusi's Replies | WordPress.org

---

# lkhulusi

  [  ](https://wordpress.org/support/users/lkhulusi/)

 *   [Profile](https://wordpress.org/support/users/lkhulusi/)
 *   [Topics Started](https://wordpress.org/support/users/lkhulusi/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lkhulusi/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lkhulusi/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lkhulusi/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lkhulusi/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lkhulusi/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [save_post returning old post meta](https://wordpress.org/support/topic/save_post-returning-old-post-meta/)
 *  Thread Starter [lkhulusi](https://wordpress.org/support/users/lkhulusi/)
 * (@lkhulusi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/save_post-returning-old-post-meta/#post-12403488)
 * Thanks for the response.
 * I initially thought it was a RACE condition as well, but when I delay the code
   within the function for 10 seconds, I still get the same results.
 * I’ve attempted `updated_postmeta` by only switching the action name in the hook.
   It does not seem to be firing at all. I added `die();` in the first line of code
   and I do not get any errors, and the output of the file does not change even 
   after updating multiple times. As soon as I change the action back to `save_post`
   whatever code I have is executed.
 * Are you able to try my code (or something similar) and get the expected results?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [save_post returning old post meta](https://wordpress.org/support/topic/save_post-returning-old-post-meta/)
 *  Thread Starter [lkhulusi](https://wordpress.org/support/users/lkhulusi/)
 * (@lkhulusi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/save_post-returning-old-post-meta/#post-12399397)
 * Also, to add more context, I’m creating the a custom field `custom_field_1` in
   the admin and entering a value from the admin. Using the twentytwenty theme.

Viewing 2 replies - 1 through 2 (of 2 total)