Hi, thanks for the nice words.
I’m not completely sure what you mean by Ajax tabs. Which part of the the demo plugin are you referring to?
Hello,
Thanks for the fast reply. I actually just found it myself.
By ajax tabs I meant the tabs inside of a tab, to which you can switch to without reloading the page.
$this->addSettingSections(
array(
'section_id' => 'tabbed_sections_a',
'section_tab_slug' => 'tabbed_sections',
'title' => 'Tab A',
'description' => 'This is the first item of the tabbed section.',
),
array(
'section_id' => 'tabbed_sections_b',
'section_tab_slug' => 'tabbed_sections',
'title' => 'Tab B',
'description' => 'This is the second item of the tabbed section.',
)
);
$this->addSettingFields(
array(
'field_id' => 'text',
'section_id' => 'tabbed_sections_a',
'title' => 'Text',
'type' => 'text',
'default' => 123456,
),
array(
'field_id' => 'text2',
'section_id' => 'tabbed_sections_b',
'title' => 'Text',
'type' => 'text',
'default' => 123456,
)
);
All working as intended 🙂
Glad to hear you found it.
The section tabs do not use Ajax though by the way. It just uses jQuery tabs.