Languages: English • publish post 日本語 (Add your language)
Publish a post by transitioning the post status.
Note: This function does not do anything except transition the post status. If you want to ensure post_name is set, use wp_update_post() instead.
<?php wp_publish_post( $post_id ) ?>
Since: 2.1.0
wp_publish_post() is located in wp-includes/post.php
.