首页>文档>Wordpress开发文档>Wordpress 函数>check_and_publish_future_post()

check_and_publish_future_post()

check_and_publish_future_post()函数是Wordpress函数,发布将来的文章并确保文章ID具有将来的文章状态。

check_and_publish_future_post( int|WP_Post $post_id )

说明(Description)

由cron“publish_future_post”事件调用。这种保护措施防止cron发布草稿等。


参数(Parameters)

参数类型必填说明
$post_id(int | WP_Post)必需Post ID或Post对象。

返回(Return)

无返回值


源码(Source)

//暂无
更新版本源码位置使用被使用
2.5.0wp-includes/post.php:429304
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索