您的当前位置:首页 > 知识博客 > wordpress建站

WordPress修改文章状态为公开:wp_publish_post

时间:2024-03-10

WordPress函数wp_publish_post用于修改文章的状态为publish

wp_publish_post( int|WP_Post $post )

函数参数

$post

整数

要修改的文章ID

扩展阅读

wp_publish_post()函数位于:wp-includes/post.php

相关函数:

  • wp_after_insert_post()

  • wp_insert_post()

  • wp_update_post()


欢迎咨询/Welcome to inquire
tel/vx:18842938855
qq:1685522781
email:1685522781@qq.com

Copyright © 2019-2024 19.org.cn


Whatsapp
Powered by RRZCMS