Codex has an article that explains Adding_Administration_Menus in detail.
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.
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
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!
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.