check_and_publish_future_post
check_and_publish_future_post ( $post )
Parameters:- (int|WP_Post) post Post ID or post object.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Publishes future post and make sure post ID has future post status.Invoked by cron 'publish_future_post' event. This safeguard prevents cron
from publishing drafts, etc.