Code to return number count of parent menu items

[ad_1]

Anyone know a php code that would return a number count of parent menu items? This means parent with children and also childless. So then something like `echo $the’parents’;` would print a integer number digit.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer