Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/w16609.ws.domainking.cloud/mudabukuro.miracle-dance.com/wp-includes/functions.php on line 6114
wp_get_nav_menu_itemsの戻り値 | 無駄ぶくろ~無駄なモノほど面白い
Deprecated:関数 print_emoji_styles は、バージョン 6.4.0 から非推奨になりました ! 代わりに wp_enqueue_emoji_styles を使用してください。 in /var/www/vhosts/w16609.ws.domainking.cloud/mudabukuro.miracle-dance.com/wp-includes/functions.php on line 6114

wp_get_nav_menu_itemsの戻り値

2022/03/10 07:03:28

このサイトの、「ヘッダーメニュー」というか、「ヘッダーナビ」というか、「グローバルナビ」というか(どれも同じモノ??)、
それの詳細を表示させてます。

以下は、メニュー名を「ヘッダーメニュー」にして、「wp_get_nav_menu_items()」を呼び出したときの戻り値です。

リストを出して見た感じでは、
「$item->db_id」と「$item->ID」は、メニュー構造の(?)IDで、その親を示すのが「$item->item_paremt」。
「$item->object_id」は、該当する投稿や固定ファイルのIDで、その親を示すのが「$item->post_parent」
になってるみたいな気がします。(あえて曖昧な表現)

wp_get_nav_menu_items


「ヘッダーメニュー」の内容を取得

title ID
db_id
item
_親
object
_id
post
_親
1 TOP PAGE 固定 100153
100153
0 100117 0
2 固定page-TOP 固定 100154
100154
0 100119 0
3 (index)WordP 固定 100342
100342
100154 100325 0
4 (index)phpなど 固定 100163
100163
100342 100131 100325
5 (index)WordP 固定 100162
100162
100342 100123 100325
6 ブログ-TOP 固定 100156
100156
0 100127 0
7 WPはじめました(´ω` カテ 100164
100164
100156 2 0
8 WP親子関係(階層構造) カテ 100166
100166
100156 6 0
9 つれづれに(雑談) カテ 100343
100343
100156 8 0
10 メール・お問い合わせ 固定 100157
100157
0 100129 100117
11 サイトマップ(WP標準) 固定 100268
100268
0 100264 100117
12 親サイトへ カス 100210
100210
0 100210 0
13 親サイト:みらくるダンス カス 100211
100211
100210 100211 0
14 趣味のオーディオ実験室 カス 100213
100213
100210 100213 0
15 ■管理ページ カス 100170
100170
0 100170 0

wp_get_nav_menu_items() の詳細

1〔固定ページ〕TOP PAGE
ID100153
post_author1
post_date2022-03-02 09:26:46
post_date_gmt2022-03-02 00:26:46
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100153
to_ping
pinged
post_modified2022-03-02 09:26:46
post_modified_gmt2022-03-02 00:26:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100153.html
menu_order1
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100153
menu_item_parent0
object_id100117
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/
titleTOP PAGE
target
attr_title
description
classes配列()
xfn
2〔固定ページ〕固定page-TOP
ID100154
post_author1
post_date2022-03-09 17:56:11
post_date_gmt2022-03-02 00:26:46
post_content
post_title固定page-TOP
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100154
to_ping
pinged
post_modified2022-03-09 17:56:11
post_modified_gmt2022-03-09 08:56:11
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100154.html
menu_order2
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100154
menu_item_parent0
object_id100119
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/index.html
title固定page-TOP
target
attr_title
description
classes配列()
xfn
3〔固定ページ〕(index)WordPress,PHP,CSSなど
ID100342
post_author1
post_date2022-03-09 17:56:00
post_date_gmt2022-03-09 08:40:46
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100342
to_ping
pinged
post_modified2022-03-09 17:56:00
post_modified_gmt2022-03-09 08:56:00
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100342.html
menu_order3
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100342
menu_item_parent100154
object_id100325
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/index07programing.html
title(index)WordPress,PHP,CSSなど
target
attr_title
description
classes配列()
xfn
4〔固定ページ〕(index)phpなどの動作確認のページ
ID100163
post_author1
post_date2022-03-09 20:25:12
post_date_gmt2022-03-02 00:29:47
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100163
to_ping
pinged
post_modified2022-03-09 20:25:12
post_modified_gmt2022-03-09 11:25:12
post_content_filtered
post_parent100325
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100163.html
menu_order4
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100163
menu_item_parent100342
object_id100131
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/index07programing/index999test.html
title(index)phpなどの動作確認のページ
target
attr_title
description
classes配列()
xfn
5〔固定ページ〕(index)WordPress関連の固定ページ
ID100162
post_author1
post_date2022-03-09 20:25:12
post_date_gmt2022-03-02 00:29:47
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100162
to_ping
pinged
post_modified2022-03-09 20:25:12
post_modified_gmt2022-03-09 11:25:12
post_content_filtered
post_parent100325
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100162.html
menu_order5
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100162
menu_item_parent100342
object_id100123
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/index07programing/index333wordpress.html
title(index)WordPress関連の固定ページ
target
attr_title
description
classes配列()
xfn
6〔固定ページ〕ブログ-TOP
ID100156
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 00:26:46
post_content
post_titleブログ-TOP
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100156
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100156.html
menu_order6
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100156
menu_item_parent0
object_id100127
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/wpblog.html
titleブログ-TOP
target
attr_title
description
classes配列()
xfn
7〔カテゴリー〕WPはじめました(´ω`)
ID100164
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 00:29:47
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100164
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100164.html
menu_order7
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100164
menu_item_parent100156
object_id2
objectcategory
typetaxonomy
type_labelカテゴリー
urlhttps://mudabukuro.miracle-dance.com/wpblog/category/wp-hajimeru
titleWPはじめました(´ω`)
target
attr_title
description
classes配列()
xfn
8〔カテゴリー〕WP親子関係(階層構造)(・ω・)
ID100166
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 00:36:11
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100166
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100166.html
menu_order8
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100166
menu_item_parent100156
object_id6
objectcategory
typetaxonomy
type_labelカテゴリー
urlhttps://mudabukuro.miracle-dance.com/wpblog/category/wp-oyako
titleWP親子関係(階層構造)(・ω・)
target
attr_title
description
classes配列()
xfn
9〔カテゴリー〕つれづれに(雑談)
ID100343
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-09 08:40:46
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100343
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100343.html
menu_order9
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100343
menu_item_parent100156
object_id8
objectcategory
typetaxonomy
type_labelカテゴリー
urlhttps://mudabukuro.miracle-dance.com/wpblog/category/zatsudan
titleつれづれに(雑談)
target
attr_title
description
classes配列()
xfn
10〔固定ページ〕メール・お問い合わせ
ID100157
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 00:26:46
post_content
post_title
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_name100157
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent100117
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100157.html
menu_order10
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100157
menu_item_parent0
object_id100129
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/infomation/mailbox.html
titleメール・お問い合わせ
target
attr_title
description
classes配列()
xfn
11〔固定ページ〕サイトマップ(WP標準)
ID100268
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-05 05:45:26
post_content
post_titleサイトマップ(WP標準)
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_namenav_menu_item-0-4
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent100117
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100268.html
menu_order11
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100268
menu_item_parent0
object_id100264
objectpage
typepost_type
type_label固定ページ
urlhttps://mudabukuro.miracle-dance.com/infomation/sitemap.html
titleサイトマップ(WP標準)
target
attr_title
description
classes配列()
xfn
12〔カスタムリンク〕親サイトへ
ID100210
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 20:21:02
post_content
post_title親サイトへ
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_namenav_menu_item-0-5
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100210.html
menu_order12
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100210
menu_item_parent0
object_id100210
objectcustom
typecustom
type_labelカスタムリンク
title親サイトへ
urlhttps://miracle-dance.com
target
attr_title
description
classes配列()
xfn
13〔カスタムリンク〕親サイト:みらくるダンス.com
ID100211
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 20:21:02
post_content
post_title親サイト:みらくるダンス.com
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_namenav_menu_item-0
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100211.html
menu_order13
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100211
menu_item_parent100210
object_id100211
objectcustom
typecustom
type_labelカスタムリンク
title親サイト:みらくるダンス.com
urlhttps://miracle-dance.com
target
attr_title
description
classes配列()
xfn
14〔カスタムリンク〕趣味のオーディオ実験室
ID100213
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 20:24:35
post_content
post_title趣味のオーディオ実験室
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_namenav_menu_item-0-3
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100213.html
menu_order14
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100213
menu_item_parent100210
object_id100213
objectcustom
typecustom
type_labelカスタムリンク
title趣味のオーディオ実験室
urlhttps://audio.miracle-dance.com
target
attr_title
description
classes配列()
xfn
15〔カスタムリンク〕■管理ページ
ID100170
post_author1
post_date2022-03-09 17:40:46
post_date_gmt2022-03-02 02:37:20
post_content
post_title■管理ページ
post_excerpt
post_statuspublish
comment_statusclosed
ping_statusclosed
post_password
post_namenav_menu_item-0-2
to_ping
pinged
post_modified2022-03-09 17:40:46
post_modified_gmt2022-03-09 08:40:46
post_content_filtered
post_parent0
guidhttps://mudabukuro.miracle-dance.com/wpblog/post-100170.html
menu_order15
post_typenav_menu_item
post_mime_type
comment_count0
filterraw
db_id100170
menu_item_parent0
object_id100170
objectcustom
typecustom
type_labelカスタムリンク
title■管理ページ
urlhttps://mudabukuro.miracle-dance.com/wp-admin
target
attr_title
description
classes配列()
xfn