Opened 3 months ago
Last modified 3 months ago
#23759 new enhancement
Pass $update to save_post and wp_insert_post actions
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Post Types | Version: | 3.5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | nashwan.doaqan@… |
Description
For now it's hard to check if the post is updated or publish for the first time when using save_post and wp_insert_post hooks
Attachments (1)
Change History (6)
comment:3
follow-up:
↓ 4
SergeyBiryukov
— 3 months ago
- Component changed from General to Post Types
comment:4
in reply to:
↑ 3
alex-ye
— 3 months ago
Replying to SergeyBiryukov:
For now it's hard to check if the post is updated or publish for the first time
Post status transition actions can be used as a workaround:
http://codex.wordpress.org/Post_Status_Transitions
Related: #21450
Yes it could be used , but Post_Status_Transitions it's different form what I ask , especially when you want all things in one function I currently check $_POSTupdate? in the back-end , but what about when you make some staff in the front-end ...
I read the Related ticket but and I think we cant make the both in the core :)
Post status transition actions can be used as a workaround:
http://codex.wordpress.org/Post_Status_Transitions
Related: #21450