Ready to get started?Download WordPress


Admin and Menu management (6 posts)

    Posted 6 years ago #

    I have been using WordPress for 3 years now.
    I developped my own plugins.
    Each time or so, i made an upgrade of WordPress, i had to review my plugin code about Admin menues.

    The most sofisticated plugin i made is managing events like comments. Under the Comments menu item i have two new options : Events, Moderate Events. Of course, on both options, i can edit a particular event.
    My plugin was working just fine till 2.2 (with little fixes).
    But now i do not find the solution.

    I found a bit frustrating that what you see under the admin panels cannot be 'easily' coded for your own needs.

    You guys developping the Admin should consider reviewing the different items of the Admin as if they were ALL add-ons of the Admin. Each major options (Write, Manage, Comments, ...) would be coded with the same architecture.

    This would ease the developpement and maintenance for you and 'sofisticated plugins' developpers.

    Anyway thank you for the great work

  2. MichaelH
    Posted 6 years ago #

    Thanks for your recommendations. Right now the there is an initiative underway to revise the admin UI.

    Join the wp-hackers email list as there will likely be some discussion once that admin UI revision is released (that will be very soon).


    Posted 6 years ago #

    Thanks MichaelH.

    I just joined the wp-hackers email list.

    Waiting for more information about reviewing the Admin architecture of code and why not all the access levels of the different options (you now, the level 1 to 9) which seems to be hard-coded.
    Can 't wait to contribute ...

    Posted 6 years ago #

    Well i am re opening this topic.

    I tried to modify wp-admin/menu.php...

    Was i surprised to see that some wp files in the admin have their submenu AND menu HARD CODED in those files ...

    SO $menu and $submenu are not the only variables to manage Wp admin menues...

    Posted 6 years ago #

    This is the kind of admin menu organisation i would like to have :

    all pictures have some specs attached.

  6. nicholutso
    Posted 6 years ago #

    I don't know if this is the appropriate thread, but its the most active. I have some custom code that lives outside the wp-admin folder, and its linked to correctly in menu.php it spits out a page with a form on it. At the top of the page I use:
    require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-admin/admin.php');
    $title = __('Edit Inns');
    $this_file = 'inn.php';
    $parent_file = 'inn.php';
    require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-admin/admin-header.php');
    to pull in the wordpress admin menu, but its not pulling in my plugin menu items (specifically cforms II) any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic