Is post_id a moving target?
-
I have a plugin with a that adds a save_post hook.
I notice that if I click on “save post”, I might see my save_post hook invoked with post_id=247 (for example), then if i modify the post by adding images, and then click on “save post” again, now my save_post hook is invoked with a different post_id=252, and invoked with post_id=247.
How am I supposed which is the “real” post_id? Is there a way to determine that 252 was a synonym for 247?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Is post_id a moving target?’ is closed to new replies.