Timeline for Check if new post or update before save_post action
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 24, 2024 at 9:07 | comment | added | Rup | Out of curiousity what are you doing here? What's the priority 10 action you need to be the correct side of? | |
| Feb 24, 2024 at 9:04 | answer | added | Rup | timeline score: 0 | |
| Feb 23, 2024 at 23:41 | answer | added | Ali Alizadegan | timeline score: 0 | |
| Feb 23, 2024 at 17:18 | comment | added | John Pls | I already saw about $update parameter, but it will not affect priority parameter. I have to make a condition before being in save_post. | |
| Feb 23, 2024 at 15:47 | comment | added | Sally CJ | The save_post hook has a 3rd parameter, namely $update, so why not use an if-else from within a single callback to check whether it's an update or a new post? Why do you need two different priorities? | |
| S Feb 23, 2024 at 15:21 | review | First questions | |||
| Feb 24, 2024 at 9:07 | |||||
| S Feb 23, 2024 at 15:21 | history | asked | John Pls | CC BY-SA 4.0 |