PluginProbe
SheetsPilot – AI Spreadsheet Bulk Edit for Posts, WooCommerce Products & SEO / trunk
SheetsPilot – AI Spreadsheet Bulk Edit for Posts, WooCommerce Products & SEO vtrunk
sheetspilot / sheetspilot.php

sheetspilot.php in SheetsPilot – AI Spreadsheet Bulk Edit for Posts, WooCommerce Products & SEO trunk, at sheetspilot.php

116 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package SheetsPilot
4 * @author Unlimited Elements
5 * @copyright (C) 2026 Unlimited Elements, All Rights Reserved.
6 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
7 **/
8 /*
9 Plugin Name: SheetsPilot - AI Spreadsheet Editor & Bulk Editor for Posts, WooCommerce Products & SEO
10 Plugin URI: https://sheetspilot.ai
11 Description: Bulk edit posts, pages, products, and custom fields using a spreadsheet interface.
12 Version: 1.0.9
13 Requires at least: 6.0
14 Requires PHP: 7.4
15 Tested up to: 7.0
16 Contributors: unitecms
17 Author: Unlimited Elements
18 License: GPLv2 or later
19 License URI: https://www.gnu.org/licenses/gpl-2.0.html
20 Text Domain: sheetspilot
21 */
22
23
24 if ( ! defined( 'ABSPATH' ) ) exit;
25 if ( ! defined( 'SHEETSPILOT_INC' ) ) {
26 define( 'SHEETSPILOT_INC', true );
27 }
28
29
30 define("SHEETSPILOT_DEV_BUILD","");
31
32
33 if ( !function_exists( 'she_fs' ) ) {
34
35 // Create a helper function for easy SDK access.
36 function she_fs() {
37 global $she_fs;
38 if ( !isset( $she_fs ) ) {
39 // Include Freemius SDK.
40 require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
41 $she_fs = fs_dynamic_init( array(
42 'id' => '27794',
43 'slug' => 'sheetspilot',
44 'type' => 'plugin',
45 'public_key' => 'pk_c8a223d611488ab3918c6791c058a',
46 'is_premium' => false,
47 'has_premium_version' => true,
48 'premium_suffix' => 'Pro',
49 'has_addons' => false,
50 'has_paid_plans' => true,
51 'is_org_compliant' => true,
52 'menu' => array(
53 'slug' => 'sheetspilot',
54 'parent' => array(
55 'slug' => 'sheetspilot',
56 ),
57 'first-path' => 'admin.php?page=sheetspilot',
58 'contact' => false,
59 'support' => false,
60 ),
61 'is_live' => true,
62 ) );
63 }
64 return $she_fs;
65 }
66
67 // Init Freemius.
68 she_fs();
69 // Signal that SDK was initiated.
70 do_action( 'she_fs_loaded' );
71 }
72
73
74 define( 'SHEETS_PLUGIN_FILE', __FILE__ );
75 define( 'SHEETS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
76 define( 'SHEETS_WPPLUGIN_DIR', trailingslashit( dirname( plugin_dir_path( __FILE__ ) ) ) );
77 define( 'SHEETS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
78 define( 'SHEETS_PLUGIN_IS_GLOBAL_DEV', ( is_dir( plugin_dir_path( __FILE__ ) . 'pro' ) ) );
79 define( 'SHEETS_PRO_PLUGIN_FILE', dirname( plugin_dir_path( __FILE__ ) ) . '/sheetspilot-premium/sheetspilot-pro.php' );
80
81
82 add_action('init', function() {
83
84
85 if(defined("SHEETSPILOT_VERSION")){
86
87 // Namespaced constant name (contains `\`) — WPCS PrefixAllGlobals skips these; avoids false "unprefixed" reports vs. the plugin slug.
88 if ( ! defined( 'Sheetspilot\SHEETSPILOT_BOTH_VERSIONS_INSTALLED' ) ) {
89 define( 'Sheetspilot\SHEETSPILOT_BOTH_VERSIONS_INSTALLED', true );
90 }
91
92 }else{
93
94 define("SHEETSPILOT_VERSION","1.0.9");
95 define("SHEETSPILOT_PRO_VERSION_COMPATABE_FROM","1.0.5");
96
97 $current_folder = dirname( __FILE__ );
98
99 try {
100
101 require_once $current_folder . '/includes.php';
102 \SheetsPilotUnlimitedElements\Sheetspilot\load_plugin( __FILE__ );
103 SheetsPilotGlobals::initGlobals();
104
105 if(SheetsPilotGlobals::$isAdmin == true)
106 new SheetsPilot_PluginAdmin();
107
108 }catch(Exception $e){
109
110 $message = $e->getMessage();
111 echo esc_html($message);
112 }
113
114
115 }
116 }, 1);