时间: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()
Copyright © 2019-2024 java.fit