Support

Account

Home Forums Backend Issues (wp-admin) Accessing List of Admin Menu Items Reply To: Accessing List of Admin Menu Items

  • Yes there is, I do this in one of my plugins https://github.com/Hube2/acf-options-page-adder/blob/master/options-pages.php

    On line 57 is where the filter is added and the main function is on 396. This function relies on data collected by the function build_admin_menu_list that starts on line 500. This function builds a list that is meant to work with acf options pages and some of the admin menus are not shown, like comments and plugins. The menu list is collected on the ‘admin_menu’ action. There must be a reason that I did it then, but I don’t remember why at this point, I only say there must be a reason because otherwise it would be in the function that populates the ACF select field.