it is the dafault fallback for the menu function;
see https://developer.ww.wp.xz.cn/reference/functions/wp_nav_menu/
‘fallback_cb‘
(callable|bool) If the menu doesn’t exists, a callback function will fire. Default is ‘wp_page_menu’. Set to false for no fallback.
you can set the parameters for wp_page_menu() fior example via a filter;
https://developer.ww.wp.xz.cn/reference/functions/wp_page_menu/
I struggled for some time to get this working, but I could not.
What I need is to pass a ‘depth’ parameter to ‘wp_list_pages’, so it would show only 1 or 2 levels of depth.
Could you provide any pointers? Thank you in advance!