首页 WordPress函数大全 check_and_publish_future_post()

check_and_publish_future_post()

2020-05-01 / 3906阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

check_and_publish_future_post( int|WP_Post $post_id )

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.

参数

$post_id

(int|WP_Post)
(Required)
Post ID or post object.

大家谈论
    我的见解