13

I am developing my own plugin and I am trying to figure out how to add tabs to my admin page.

Is the process similar to how we add meta boxes?

Ie, something like add_tab_box(...); and I specify a callback?

When I say tabs I mean tabs like below:

enter image description here

1 Answer 1

19

I advice you to read this topic: Here you can find complete guide making options page with tabbed content.

Or you can just copy the html of the tabbed page that you've liked, and use it on your own options page.

I made my options page with tabs too, but with api. Tabs and the fields are taken from config array.

Here you can see $aus_tabs array.

And here is the class of options page.

This class is used to render the form fields.

1
  • Your last two suggested urls are not working Jan 11, 2016 at 12:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.