wp_publish_post

Sponsored Link

投稿ステータスを推移させることによって投稿を公開します。

Sponsored Link

Publish a post by transitioning the post status.

wp_publish_postのファンクションタグ使用方法

<?php wp_publish_post( $post_id ) ?>

wp_publish_postのパラメーター

$post_id

(integer) (required) 投稿IDです。
デフォルト:なし

(integer) (required) Post ID.
Default: None

戻り値

(null)

注釈

  • Uses: $wpdb
  • Uses: do_action() to call the following on $post_id and $post (post data):
  • edit_post(),
  • save_post() and
  • wp_insert_post().

変更ログ

Since: 2.1.0

ソースファイル

wp_publish_post()は、wp-includes/post.php内に位置しています。

wp_publish_post() is located in wp-includes/post.php.

関連ファンクションタグ

wp_insert_post()

Sponsored Link