Changes between Initial Version and Version 1 of Ticket #21450, comment 1
- Timestamp:
- 08/02/2012 12:15:32 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21450, comment 1
initial v1 1 1 > There is no hook that would be exectued only when post is created 2 2 3 You could use `transition_post_status` action and check if `$old_status` is ` new`:3 You could use `transition_post_status` action and check if `$old_status` is `'new'`: 4 4 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/post.php#L2997 5 5 http://codex.wordpress.org/Post_Status_Transitions