Codex tools: Log in
Languages: English • 日本語 • (Add your language)
Contents |
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.
Alex King's post on wp_publish_post() vs wp_update_post()