Skip to content

Instantly share code, notes, and snippets.

View reachkamrul's full-sized avatar
😁

Md Kamrul Islam reachkamrul

😁
View GitHub Profile
@reachkamrul
reachkamrul / show_ninja_table_on_admin.php
Created March 9, 2020 11:00 — forked from techjewel/show_ninja_table_on_admin.php
Show Ninja Tables On Admin settings Page
<?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;