Mimicking admin panel menu from wordpress 3.0.1

It’s a rather open ended question…

Basically, the core menu functionality are in:

  • wp-amin/menu.php (initialize/display)
  • wp-admin/js/common.dev.js (fold/unfold and store state scripts)
  • wp-admin/includes/plugin.php (functions that allow plugins to add extra items)

But these then make use of a wide variety of other WP functionality. If your goal is to create menu code for a separate app, as I’m suspecting, you’re in for copying entire chunks of the WP code base so you might as well use WP altogether.