• if i’ve got an array with these values :

    x1 = tab1
    x2 = tab2
    x3 = tab3
    etc ..
    etc ..

    is it possible to display these tabs into the adminpages using add_submenu_page. The number of tabs may vary.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Codex has an article that explains Adding_Administration_Menus in detail.

    Thread Starter bernardflach

    (@bernardflach)

    This codex article does not explain an x-number of tabs. The problem here is that the number of tabs may vary according to userlevel.

    Thread Starter bernardflach

    (@bernardflach)

    if ive got tab 1 tab 2 tab3 i need
    function 1, function 2 and function 3

    is it possible to generate thes functions on the fly of has anyone a different solusion.

    that link explains how to add multiple tabs. he answered your first question, atleast if I understood it the way he did.

    If its done via user level then just use some if/else stuff to check the user level and display accordingly.

    seems simple enough to me, and i JUST figured out plugins

    Thread Starter bernardflach

    (@bernardflach)

    Also if the name of the tabs vary ? i also can insert user defined tabs .. however ,, my tabs vary by name. This means i have to create functions that also vary by name and this is not possible i think …

    mt_my_own_page_andaverydifferentname () { }
    mt_my_own_page_andyetanothernameformytab () { }
    mt_my_own_page_andAgainADifferentname () { }

    All of these names come out of an array. if one has rights (and yes i know the rights system of wordpress…dont tell me i dont know wordpress) gets a few tabs assigned … the number of tabs may vary from 1 to lets say 10 ..

    i just want to find out a way to display tabs that are listed in an array.

    “dont tell me i dont know wordpress”

    Did I say that? I dont think so.

    have a nice day and good luck!

    Thread Starter bernardflach

    (@bernardflach)

    This might be a language problem then. However .. the question is not solved yet .. does anyone else know how to create unique functions on the fly (witch i need to create the tabs) the functions must be unique too in order to show up in the admin. Hope someone else knows a solution or don’t i need the functions at all.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tabs in admin’ is closed to new replies.