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

    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.