投稿・更新時の$_POSTの中身

備忘録の意味合いが強いですが。

記事投稿時に飛ぶ$_postを少しのぞいてみました。ローカル環境なので実際どういうのが飛んでるのかは不明だけれど、ヒントにはなる。タグ関係の項目が二つあったりと用途がよくわからなかったりもするんだが、これは何なんだろうなあ。

Array
(
    [_wpnonce] => 9adb52c46f
    [_wp_http_referer] => /wordpress/wp-admin/post.php?post=724&action=edit&message=1
    [user_ID] => 1
    [action] => editpost
    [originalaction] => editpost
    [post_author] => 1
    [post_type] => post
    [original_post_status] => publish
    [referredby] => http://localhost/wordpress/wp-admin/post.php?post=724&action=edit&message=6
    [_wp_original_http_referer] => http://localhost/wordpress/wp-admin/post.php?post=724&action=edit&message=6
    [post_ID] => 724
    [autosavenonce] => 55a7b0a669
    [meta-box-order-nonce] => 51151802d2
    [closedpostboxesnonce] => fcdcb1dd74
    [post_title] => タイトル
    [samplepermalinknonce] => 7c38aa7493
    [content] => 内容

内容

内容

 
    [wp-preview] =>
    [hidden_post_status] => publish
    [post_status] => publish
    [hidden_post_password] =>
    [hidden_post_visibility] => public
    [visibility] => public
    [post_password] =>
    [aa] => 2013
    [mm] => 01
    [jj] => 12
    [hh] => 19
    [mn] => 02
    [ss] => 06
    [hidden_mm] => 01
    [cur_mm] => 01
    [hidden_jj] => 12
    [cur_jj] => 12
    [hidden_aa] => 2013
    [cur_aa] => 2013
    [hidden_hh] => 19
    [cur_hh] => 19
    [hidden_mn] => 02
    [cur_mn] => 03
    [original_publish] => 更新
    [save] => 更新
    [tax_input] => Array
        (
            [post_tag] => タグ,タグタグ
        )

    [newtag] => Array
        (
            [post_tag] =>
        )

    [post_category] => Array
        (
            [0] => 0
            [1] => 1
            [2] => 3
        )

    [newcategory] => 新規カテゴリー名
    [newcategory_parent] => -1
    [_ajax_nonce-add-category] => eaaf90a34b
    [excerpt] => 抜粋
    [trackback_url] =>
    [metakeyinput] =>
    [metavalue] =>
    [_ajax_nonce-add-meta] => d45090f5dc
    [advanced_view] => 1
    [comment_status] => open
    [ping_status] => open
    [post_name] => test-2
    [post_author_override] => 1
    [add_comment_nonce] => 0912c377dc
    [_ajax_fetch_list_nonce] => b87b29092f
    [post_mime_type] =>
    [ID] => 724
    [post_content] => 内容

内容

内容

 
    [post_excerpt] => 抜粋
    [to_ping] =>
)