I want to get all the menu items from the woocommerce account page. When we hook into
woocommerce_account_menu_items filter, it passes an array of the menu items, I want this array but not the in the callback of this filter.
Is there anyway to do this? Maybe a custom query to the database?