Hey I figured I'd check here and see if anyone knew off the top of their head. I am trying to find a slick way of re ordering the tabs at the top of the item add/edit sections. I would like to display Item Type Metadata first, from there I would like to modify the form to default to a specific item type.
Here is the code chunk I am considering modding. (inside form-tabs.php)
<ul id="section-nav" class="navigation tabs">
<?php foreach ($tabs as $tabName => $tabContent): ?>
<?php if (!empty($tabContent)): // Don't display tabs with no content. '?>
<li><a>"><?php echo html_escape(__($tabName)); ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
Look at the admin_items_form_tabs filter. It's usually used to add or remove a tab, but you can reorder them also.
Thanks for the tip! I'll try it out:)
I found an older post to reorder tabs:
- which is exactly what I want to do. Is this still valid in recent versions (I'm using v.2.3.1)?
It looks like it, though I haven't tried it out directly.