i am looking for solution to hide (just not print) menu items if the page content is empty.
by default wordpress create menu item when new page created. and that ok.
but what i don't want, is when new page created, and the user still did not add any content to the page, is to show the page in the menu.
any suggestions?
wp_page_menu
if a nav menu isn't set up. The intention is for you to create a menu yourself so only pages you explicitly add show up in the menu.