check_and_publish_future_post


check_and_publish_future_post ( $post_id )

Parameters:
  • (int|WP_Post) $post_id Post ID or post object.
Defined at:

Description

Publish 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.

Related Functions

get_others_unpublished_posts, wp_publish_post, _publish_post_hook, the_author_posts, user_can_delete_post

Top Google Results

User discussions

wpseek mobile