This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* By Default Ninja Tables does not work if you want to render table on | |
* admim panel. The following code will create a top level admin page and render a table | |
* the example table if is 1306 that you need to change | |
*/ | |
add_action( 'admin_menu', function () { | |
add_menu_page( 'Admin View', 'NT Admin', 'manage_options', 'myplugin/myplugin-admin-page.php', function () { | |
$tableId = 1306; // This is ninja table ID; |