|
Every time a post changes status,
wp_transition_post_status
function will be called. This triggers the actions
${old_status}_to_${new_status}
and
${new_status}_${post->
post_type}
, so for example
publish_post
will be triggered here. A post with a date in the future will have the status
future
until it is actually published, so this should work for you.
|