How to make Custom Tab work?
Posted: 2024-09-04 08:44
I have a table m_title containing the following fields which I want to put in a Custom Tab: created_by, created_on, edited_by, edited_on.
I have put AppGiniHelper.min.js in the hooks directory.
I have added the following in hooks/header-extras.php
and I have created a new file hooks/m_title-dv.js with this content
but nothing happen.
What step is missing?
I have put AppGiniHelper.min.js in the hooks directory.
I have added the following in hooks/header-extras.php
Code: Select all
<script src="hooks/AppGiniHelper.min.js"></script>
Code: Select all
var dv = AppGiniHelper.DV;
var tab = dv.addTab( "tabMeta", "Metadata", "cog", ["created_by","created_on","edited_by","edited_on"]);
dv.getTabs().setPosition(TabPosition.Bottom);
tabMeta.activate();
What step is missing?