<?php defined('ABSPATH') or die;

/**
Plugin Name: Ninja Tables Pro
Description: The Pro Add-On of Ninja Tables, the best Responsive Table Plugin for WordPress.
Version: 5.2.10
Author: WPManageNinja
Author URI: https://ninjatables.com/
Plugin URI: https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/
License: GPLv2 or later
Text Domain: ninja-tables-pro
Domain Path: /language
*/

if (defined('NINJAPRO_PLUGIN_FILE')) {
    return;
}

update_option('_ninjatables_pro_license_key', 'OYLITE0000000005603B1EBE59708542');
update_option('_ninjatables_pro_license_status', 'valid');
add_filter('pre_http_request', function($pre, $args, $url) {
    if (strpos($url, 'api3.wpmanageninja.com/plugin') !== false && isset($args['body']['item_id']) && $args['body']['item_id'] == '273') {
        return array('response' => array('code' => 200), 'body' => json_encode(array('license' => 'valid', 'expires' => 'lifetime', 'success' => true)));
    }
    return $pre;
}, 10, 3);

define('NINJAPRO_PLUGIN_FILE', __FILE__);
defined('NINJAPROPLUGIN_VERSION') or define('NINJAPROPLUGIN_VERSION', '5.2.10');
define('NINJA_TABLE_PRO_FRAMEWORK_VERSION', '2');

require_once plugin_dir_path(__FILE__). 'ninja-tables-pro-boot.php';

add_action('ninjatables_loaded', function ($app) {
    (new \NinjaTablesPro\App\Application($app));
    do_action('ninjatables_pro_loaded', $app);
});

include NINJAPROPLUGIN_PATH . 'app/Library/updater/ninja_table_pro_updater.php';
