
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? post_status について ちょっと気になったので調べてみた。 post_status の種類 リファレンスによると post_status は以下のとおり。 publish A published post or page pendingpost is pending review drafta post in draft status auto-drafta newly created post, with no content futurea post to publish in the future privatenot
以前、WP関数wp_insert_post内で使われているアクションフックについて書きましたが今回はフィルターフックについてです。 完璧に理解したわけでも無いので、判った範囲です。 フィルターフック『wp_insert_post_empty_content』 記事の新規追加または更新時に投稿のタイトルや内容が空かどうかを確認する部分で使われています。 WordPressでのサイト制作時に使うことはあまり無さそうです。 フィルターフック『wp_insert_post_parent』 恐らく親記事のIDの設定をしているということだと思います。 使う時はこんな感じ。 function post_function($post_parent, $post_id){ //処理 return $post_parent; } add_filter('wp_insert_post_parent', 'pos
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く