| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The plugin bootstrap file |
| 5 |
* |
| 6 |
* This file is read by WordPress to generate the plugin information in the plugin |
| 7 |
* admin area. This file also includes all the dependencies used by the plugin, |
| 8 |
* registers the activation and deactivation functions, and defines a function |
| 9 |
* that starts the plugin. |
| 10 |
* |
| 11 |
* @link http://wptablebuilder.com/ |
| 12 |
* @since 1.0.0 |
| 13 |
* @package WP_Table_Builder |
| 14 |
* |
| 15 |
* @wordpress-plugin |
| 16 |
* Plugin Name: WP Table Builder |
| 17 |
* Plugin URI: https://wptablebuilder.com/ |
| 18 |
* Description: Drag and Drop Responsive Table Builder Plugin for WordPress. |
| 19 |
* Version: 2.2.1 |
| 20 |
* Author: WP Table Builder |
| 21 |
* Author URI: https://wptablebuilder.com// |
| 22 |
* License: GPL-3.0+ |
| 23 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 24 |
* Text Domain: wp-table-builder |
| 25 |
* Domain Path: /languages |
| 26 |
*/ |
| 27 |
|
| 28 |
define('WPTB_PLUGIN_DIR', __DIR__); |
| 29 |
define('WPTB_PLUGIN_URL', rtrim(plugin_dir_url(__FILE__), '/')); |
| 30 |
define('WPTB_PLUGIN_FILE', __FILE__); |
| 31 |
define('WPTB_VERSION', '2.2.1'); |
| 32 |
|
| 33 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 34 |
|
| 35 |
if (!function_exists('wptb_fs')) { |
| 36 |
function wptb_fs() |
| 37 |
{ |
| 38 |
global $wptb_fs; |
| 39 |
|
| 40 |
if (!isset($wptb_fs)) { |
| 41 |
$wptb_fs = fs_dynamic_init([ |
| 42 |
'id' => '6602', |
| 43 |
'slug' => 'wp-table-builder', |
| 44 |
'type' => 'plugin', |
| 45 |
'public_key' => 'pk_6bf7fb67d8b8bcce83459fd46432e', |
| 46 |
'is_premium' => false, |
| 47 |
'has_addons' => true, |
| 48 |
'has_paid_plans' => false, |
| 49 |
'is_org_compliant' => false, |
| 50 |
'menu' => [ |
| 51 |
'slug' => 'wptb', |
| 52 |
'first-path' => 'admin.php?page=wptb-welcome', |
| 53 |
'account' => true, |
| 54 |
'contact' => false, |
| 55 |
'support' => false, |
| 56 |
], |
| 57 |
]); |
| 58 |
} |
| 59 |
|
| 60 |
return $wptb_fs; |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
\WPTableBuilder\Admin\Api\ApiHandler::init(); |
| 66 |
|
| 67 |
\WPTableBuilder\Core\Activation::init(); |
| 68 |
|
| 69 |
add_action('init', [ |
| 70 |
\WPTableBuilder\WPTableBuilder::class, |
| 71 |
'init' |
| 72 |
]); |
| 73 |
|
| 74 |
add_action('admin_menu', [ |
| 75 |
\WPTableBuilder\WPTableBuilder::class, |
| 76 |
'admin_init' |
| 77 |
]); |
| 78 |
|
| 79 |
|
| 80 |
add_action('admin_bar_menu', [\WPTableBuilder\WPTableBuilder::class, 'add_admin_bar_menu'], 100); |
| 81 |
|